Skip to content

Commit 2aebd88

Browse files
committed
Update SNS Aggregator types for potentially any IC commit
1 parent 22a6783 commit 2aebd88

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/update-aggregator.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- name: Install didc
2525
run: scripts/install-didc
26-
- name: Find newer IC release, if any
26+
- name: Find newer IC commit, if any
2727
id: update
2828
run: |
29-
current_release="$(jq -r .defaults.build.config.IC_COMMIT_FOR_SNS_AGGREGATOR config.json)"
30-
echo "Current IC release: $current_release"
31-
latest_release=$(curl -sSL https://api.github.com/repos/dfinity/ic/releases/latest | jq .tag_name -r)
32-
echo "Latest IC release: $latest_release"
29+
current_commit="$(jq -r .defaults.build.config.IC_COMMIT_FOR_SNS_AGGREGATOR config.json)"
30+
echo "Current IC commit: $current_commit"
31+
latest_commit=$(curl -sSL https://api.github.com/repos/dfinity/ic/commits/master | jq .sha -r)
32+
echo "Latest IC commit: $latest_commit"
3333
{
34-
if [ "$current_release" == "$latest_release" ]
34+
if [ "$current_commit" == "$latest_commit" ]
3535
then
3636
echo "updated=0"
3737
else
3838
echo "updated=1"
39-
echo "release=$latest_release"
39+
echo "commit=$latest_commit"
4040
fi
4141
} >> "$GITHUB_OUTPUT"
4242
- name: Install sponge
@@ -46,7 +46,7 @@ jobs:
4646
if: ${{ steps.update.outputs.updated == '1' }}
4747
run: |
4848
# Update candid files
49-
scripts/update_ic_commit --crate sns_aggregator --ic_commit "${{ steps.update.outputs.release }}"
49+
scripts/update_ic_commit --crate sns_aggregator --ic_commit "${{ steps.update.outputs.commit }}"
5050
# Show changes
5151
echo "Git status:"
5252
git status

0 commit comments

Comments
 (0)