Skip to content

Commit

Permalink
Fix build bundle tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Oct 26, 2023
1 parent ee4652d commit 84c0d66
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/actions/build-bundle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ runs:
- name: Export tag version
shell: bash
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/kani-') }}
run: |
echo "VERSION=${TAG_VERSION}" >> $GITHUB_ENV
# GITHUB_REF is refs/tags/kani-0.1.0
echo "VERSION=$(echo ${{ github.ref }} | cut -d "-" -f 2)" >> $GITHUB_ENV
- name: Check Version
shell: bash
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/kani-') }}
run: |
# Validate git tag & Cargo.toml are in sync on version number
if [[ ${{ env.CRATE_VERSION }} != ${{ env.TAG_VERSION }} ]]; then
Expand All @@ -46,7 +47,7 @@ runs:
- name: Export latest version
shell: bash
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
if: ${{ !startsWith(github.ref, 'refs/tags/kani-') }}
run: |
echo "VERSION=latest" >> $GITHUB_ENV
Expand Down

0 comments on commit 84c0d66

Please sign in to comment.