Skip to content

Commit

Permalink
By default, upgrade to the latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Nov 15, 2023
1 parent 7e402b1 commit ffb83e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/update-ic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,20 @@ jobs:
steps:
- name: Checkout ic-js
uses: actions/checkout@v3
- name: Choose IC ref
id: choose_ic_ref
run: |
ref="${{ inputs.ic_ref }}"
if [[ "${requested_ref:-}" == "" ]]
then # Use the latest release
ref="$(gh release --repo dfinity/ic view --json tagName -q .tagName)"
fi
echo "ic_ref=$ref" >> "$GITHUB_OUTPUT"
- name: Checkout ic repo
uses: actions/checkout@v3
with:
repository: dfinity/ic
ref: ${{ inputs.ic_ref }} # Defaults to the default IC branch, currently "master".
ref: ${{ steps.choose_ic_ref.outputs.ic_ref }}
path: ic
- name: Check new IC commit
id: update
Expand Down

0 comments on commit ffb83e5

Please sign in to comment.