Skip to content

Commit

Permalink
ci: fix ref tag name in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Manuel committed Apr 7, 2022
1 parent d0a4573 commit c51ea3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ jobs:
- name: Setup release build environment
run: |
# set defaults for dynamic CI variables when local/testing
CHECK_TAG=${{ github.tag }}
CHECK_TAG=${{ github.ref_name }}
if [[ $CHECK_TAG = "" ]]; then
TAG=${TESTING_TAG}
TAG=${{ env.TESTING_TAG }}
else
TAG=${{ github.tag }}
TAG=${{ github.ref_name }}
fi
SDK_BIN=qcs-sdk-qir
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
git clone https://github.com/rigetti/qcs-sdk-c ../qcs-sdk-c
pushd ../qcs-sdk-c
git fetch --all --tags
git checkout tags/${{ env.C_SDK_VERSION}} -b build-qir-sdk-${tag}
git checkout tags/${{ env.C_SDK_VERSION}} -b build-qir-sdk-${{ env.TAG}}
cargo build --release
popd
Expand All @@ -132,7 +132,7 @@ jobs:
git clone https://github.com/rigetti/qcs-sdk-c ../qcs-sdk-c
pushd ../qcs-sdk-c
git fetch --all --tags
git checkout tags/${{ env.C_SDK_VERSION}} -b build-qir-sdk-${tag}
git checkout tags/${{ env.C_SDK_VERSION}} -b build-qir-sdk-${{ env.TAG}}
cargo build --release
popd
Expand Down

0 comments on commit c51ea3e

Please sign in to comment.