Skip to content

Commit ce0e934

Browse files
committed
fix: go install does not work because of replace directive
1 parent 538f4f8 commit ce0e934

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/iccheck.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ jobs:
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:

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)