File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1111 name : Inconsistent Change Check
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/setup-go@v5
1514 - name : Install ICCheck
16- run : go install github.com/salab/iccheck@latest
15+ run : |
16+ VERSION=$(curl -Lsf "https://api.github.com/repos/salab/iccheck/releases/latest" | jq -r '.tag_name')
17+ DOWNLOAD_URL="https://github.com/salab/iccheck/releases/download/$VERSION/iccheck_${VERSION//v/}_linux_amd64"
18+ curl -Lf "$DOWNLOAD_URL" -o iccheck
19+ chmod +x iccheck
20+ sudo install iccheck /usr/local/bin/
1721
1822 - uses : actions/checkout@v4
1923 with :
Original file line number Diff line number Diff line change @@ -134,9 +134,13 @@ jobs:
134134 name : Inconsistent Change Check
135135 runs-on : ubuntu-latest
136136 steps :
137- - uses : actions/setup-go@v5
138137 - name : Install ICCheck
139- run : go install github.com/salab/iccheck@latest
138+ run : |
139+ VERSION=$(curl -Lsf "https://api.github.com/repos/salab/iccheck/releases/latest" | jq -r '.tag_name')
140+ DOWNLOAD_URL="https://github.com/salab/iccheck/releases/download/$VERSION/iccheck_${VERSION//v/}_linux_amd64"
141+ curl -Lf "$DOWNLOAD_URL" -o iccheck
142+ chmod +x iccheck
143+ sudo install iccheck /usr/local/bin/
140144
141145 - uses : actions/checkout@v4
142146 with :
You can’t perform that action at this time.
0 commit comments