Skip to content

Commit be63d9b

Browse files
committed
ci: Migrate to paths-filter
The technote-space/get-diff-action repo is no longer maintained and archived. Last commit was 2 years ago. On the other hand dorny/paths-filter is actively maintained, last commit was 6 months ago and has far more stars 2100 vs 190 for get-diff-action. Last but not least paths-filter would better handle push force scenario. Also bump actions versions to keep the CI up to date.
1 parent 12a18d7 commit be63d9b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,23 @@ jobs:
2121
matrix:
2222
go-arch: ["amd64"]
2323
steps:
24-
- uses: actions/checkout@v3
25-
- uses: actions/setup-go@v3
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-go@v5
2626
with:
2727
go-version: "^1.21"
28-
- uses: technote-space/get-diff-action@v6.1.2
29-
id: git_diff
28+
- uses: dorny/paths-filter@v3
29+
id: filter
3030
with:
31-
PATTERNS: |
32-
**/*.go
33-
go.mod
34-
go.sum
35-
**/go.mod
36-
**/go.sum
37-
**/Makefile
38-
Makefile
31+
filters: |
32+
go:
33+
- '**/*.go'
34+
- 'go.mod'
35+
- 'go.sum'
36+
- '**/go.mod'
37+
- '**/go.sum'
38+
- '**/Makefile'
39+
- 'Makefile'
40+
3941
- name: Build
40-
if: env.GIT_DIFF
42+
if: steps.filter.outputs.go == 'true'
4143
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build

0 commit comments

Comments
 (0)