File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ jobs:
23
23
- uses : actions/checkout@v4
24
24
- name : Install didc
25
25
run : scripts/install-didc
26
- - name : Find newer IC release , if any
26
+ - name : Find newer IC commit , if any
27
27
id : update
28
28
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 "
33
33
{
34
- if [ "$current_release " == "$latest_release " ]
34
+ if [ "$current_commit " == "$latest_commit " ]
35
35
then
36
36
echo "updated=0"
37
37
else
38
38
echo "updated=1"
39
- echo "release=$latest_release "
39
+ echo "commit=$latest_commit "
40
40
fi
41
41
} >> "$GITHUB_OUTPUT"
42
42
- name : Install sponge
46
46
if : ${{ steps.update.outputs.updated == '1' }}
47
47
run : |
48
48
# 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 }}"
50
50
# Show changes
51
51
echo "Git status:"
52
52
git status
You can’t perform that action at this time.
0 commit comments