Skip to content

Commit

Permalink
ci: Migrate to paths-filter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AndreMiras committed Aug 27, 2024
1 parent 12a18d7 commit be63d9b
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,23 @@ jobs:
matrix:
go-arch: ["amd64"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "^1.21"
- uses: technote-space/[email protected]
id: git_diff
- uses: dorny/paths-filter@v3
id: filter
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/go.mod
**/go.sum
**/Makefile
Makefile
filters: |
go:
- '**/*.go'
- 'go.mod'
- 'go.sum'
- '**/go.mod'
- '**/go.sum'
- '**/Makefile'
- 'Makefile'
- name: Build
if: env.GIT_DIFF
if: steps.filter.outputs.go == 'true'
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build

0 comments on commit be63d9b

Please sign in to comment.