Skip to content

Commit

Permalink
Run version test before build
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 24, 2023
1 parent 330eed5 commit 55f884c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
with:
distribution: "temurin"
java-version: "11"
- name: "Test: Get version"
id: get_version_test
run: echo "version=${GITHUB_REF_NAME:1}" >> "$GITHUB_OUTPUT"
- name: "Test: Print versions"
run: echo ${{ steps.get_version_test.outputs.version }}

- name: "Build all"
run: bazelisk build --config=athena --verbose_failures ...
- name: "Release: Get version number"
Expand All @@ -31,13 +37,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- name: "Test: Get version"
id: get_version_test
run: echo "version=${GITHUB_REF_NAME:1}" >> "$GITHUB_OUTPUT"
- name: "Test: Print versions"
run: echo ${{ steps.get_version_test.outputs.version }}
echo ${{ steps.get_version.outputs.version-without-v }}

# Upload vendordep
- name: "Release: Generate vendordep"
if: github.event_name == 'release'
Expand Down

0 comments on commit 55f884c

Please sign in to comment.