Skip to content

Commit a136d2b

Browse files
ci: update diff action
diff action output wasn't looking right anyore, and there was a TODO saying it was abandoned. So switch to a newer diff system that just had a release in March of 2026. Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
1 parent d09010e commit a136d2b

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ jobs:
2929
name: Check out the repo
3030
uses: actions/checkout@v4
3131
-
32+
id: changes
3233
name: Check Diff for Changes
33-
# TODO replace get-diff-action, as it is no longer maintained since 2023-11-24
34-
uses: technote-space/get-diff-action@v6
34+
uses: dorny/paths-filter@v4
3535
with:
36-
FILES: |
37-
${{ matrix.distro }}.docker.m4
38-
PATTERNS: |
39-
modules/*
36+
filters: |
37+
build:
38+
- ${{ matrix.distro }}.docker.m4
39+
- modules/*
4040
-
4141
name: Build the Dockerfiles
4242
run: make -j $(nproc)
43-
if: env.GIT_DIFF
43+
if: steps.changes.outputs.build == 'true'
4444
-
4545
name: Set up QEMU
4646
uses: docker/setup-qemu-action@v3
47-
if: env.GIT_DIFF
47+
if: steps.changes.outputs.build == 'true'
4848
-
4949
name: Set up Docker Buildx
5050
uses: docker/setup-buildx-action@v3
51-
if: env.GIT_DIFF
51+
if: steps.changes.outputs.build == 'true'
5252
-
5353
name: Build Docker Images
5454
uses: docker/build-push-action@v6
5555
with:
5656
push: false
5757
context: .
5858
file: ./${{ matrix.distro }}.docker
59-
if: env.GIT_DIFF
59+
if: steps.changes.outputs.build == 'true'

.github/workflows/publish.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,40 +32,40 @@ jobs:
3232
name: Check out the repo
3333
uses: actions/checkout@v4
3434
-
35+
id: changes
3536
name: Check Diff for Changes
36-
# TODO replace get-diff-action, as it is no longer maintained since 2023-11-24
37-
uses: technote-space/get-diff-action@v6
37+
uses: dorny/paths-filter@v4
3838
with:
39-
FILES: |
40-
${{ matrix.distro }}.docker.m4
41-
PATTERNS: |
42-
modules/*
39+
filters: |
40+
build:
41+
- ${{ matrix.distro }}.docker.m4
42+
- modules/*
4343
-
4444
name: Build the Dockerfiles
4545
run: make -j $(nproc)
46-
if: env.GIT_DIFF
46+
if: steps.changes.outputs.build == 'true'
4747
-
4848
name: Set up QEMU
4949
uses: docker/setup-qemu-action@v3
50-
if: env.GIT_DIFF
50+
if: steps.changes.outputs.build == 'true'
5151
-
5252
name: Set up Docker Buildx
5353
uses: docker/setup-buildx-action@v3
54-
if: env.GIT_DIFF
54+
if: steps.changes.outputs.build == 'true'
5555
-
5656
name: Login to GitHub Container Registry
5757
uses: docker/login-action@v3
5858
with:
5959
registry: ghcr.io
6060
username: ${{ github.repository_owner }}
6161
password: ${{ secrets.GITHUB_TOKEN }}
62-
if: env.GIT_DIFF
62+
if: steps.changes.outputs.build == 'true'
6363
-
6464
name: Push to GitHub Packages
6565
uses: docker/build-push-action@v6
6666
with:
67-
push: true
67+
push: 'true'
6868
context: .
6969
file: ./${{ matrix.distro }}.docker
7070
tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.distro }}:latest
71-
if: env.GIT_DIFF
71+
if: steps.changes.outputs.build == 'true'

0 commit comments

Comments
 (0)