Skip to content

Commit

Permalink
Fetch tags before working out which commit to use (#4963)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Dec 7, 2023
1 parent 0b775e8 commit b898b4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pre_release_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ jobs:
with:
shared-key: "build-debug"
save-if: "false"
- name: Download canister wasms
run: ./scripts/download-all-canister-wasms.sh $GITHUB_REF_NAME
- name: Run integration tests
run: ./scripts/run-integration-tests.sh $GITHUB_REF_NAME
run: ./scripts/run-integration-tests.sh local
2 changes: 1 addition & 1 deletion scripts/download-all-canister-wasms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ then
WASM_SRC=$(curl -s https://openchat-canister-wasms.s3.amazonaws.com/latest)
fi

echo "Downloading wasms. WASM_SRC: $WASM_SRC"
echo "Downloading wasms"

./download-canister-wasm.sh community $WASM_SRC || exit 1
./download-canister-wasm.sh cycles_dispenser $WASM_SRC || exit 1
Expand Down
1 change: 1 addition & 0 deletions scripts/download-canister-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ then
COMMIT_ID=$(jq -r .$CANISTER_NAME ./canister_commit_ids.json)
elif [[ $WASM_SRC =~ ^v[0-9]+\.[0-9]+\.[0-9]+ ]]
then
git fetch -tfq origin master
if [[ $(git tag -l $WASM_SRC) ]]
then
RELEASE_TAG_ID=$WASM_SRC
Expand Down

0 comments on commit b898b4f

Please sign in to comment.