Skip to content

Commit 3f744af

Browse files
Fix CI Code Rot (#149)
* Upgrade to actions/upload-artifact@v4 to fix CI * Upgrade cache to v4 * Use a modern Mock chroot * Bump docker image * Missed some version numbers * Download needs to be v4 as well
1 parent c68d3d6 commit 3f744af

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/build.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python-version: '3.11'
1717

1818
- name: Cache Python modules
19-
uses: actions/cache@v1
19+
uses: actions/cache@v4
2020
env:
2121
cache-name: cache-node-modules
2222
with:
@@ -46,15 +46,15 @@ jobs:
4646
run: dist\hstsparser.exe -h
4747

4848
- name: Upload Executable
49-
uses: actions/upload-artifact@v3
49+
uses: actions/upload-artifact@v4
5050
with:
5151
name: hstsparser.exe
5252
path: dist/hstsparser.exe
5353

5454
rpm:
5555
runs-on: ubuntu-latest
5656
container:
57-
image: docker.io/library/fedora:40
57+
image: docker.io/library/fedora:42
5858
options: "--privileged"
5959
outputs:
6060
version: "${{ steps.version.outputs.version }}"
@@ -72,41 +72,41 @@ jobs:
7272
run: make mock
7373

7474
- name: Upload mock logs
75-
uses: actions/upload-artifact@v3
75+
uses: actions/upload-artifact@v4
7676
if: always()
7777
with:
7878
name: mock-logs
79-
path: /var/lib/mock/fedora-40-x86_64/result/*
79+
path: /var/lib/mock/fedora-42-x86_64/result/*
8080

8181
- name: Get RPM Version and Release
8282
id: version
8383
run: echo "version=$(rpmspec -q hstsparser.spec --queryformat='%{version}-%{release}')" >> "$GITHUB_OUTPUT"
8484

8585
- name: Upload SRPM
86-
uses: actions/upload-artifact@v3
86+
uses: actions/upload-artifact@v4
8787
with:
8888
name: hstsparser-${{ steps.version.outputs.version }}.src.rpm
89-
path: /var/lib/mock/fedora-40-x86_64/result/hstsparser-${{ steps.version.outputs.version }}.src.rpm
89+
path: /var/lib/mock/fedora-42-x86_64/result/hstsparser-${{ steps.version.outputs.version }}.src.rpm
9090
if-no-files-found: error
9191

9292
- name: Upload RPM
93-
uses: actions/upload-artifact@v3
93+
uses: actions/upload-artifact@v4
9494
with:
9595
name: hstsparser-${{ steps.version.outputs.version }}.noarch.rpm
96-
path: /var/lib/mock/fedora-40-x86_64/result/hstsparser-${{ steps.version.outputs.version }}.noarch.rpm
96+
path: /var/lib/mock/fedora-42-x86_64/result/hstsparser-${{ steps.version.outputs.version }}.noarch.rpm
9797
if-no-files-found: error
9898

9999
rpmlint:
100100
runs-on: ubuntu-latest
101-
container: docker.io/library/fedora:40
101+
container: docker.io/library/fedora:42
102102
needs: rpm
103103

104104
steps:
105105
- name: Checkout repository
106106
uses: actions/checkout@v3
107107

108108
- name: Download RPM
109-
uses: actions/download-artifact@v2
109+
uses: actions/download-artifact@v4
110110
with:
111111
name: hstsparser-${{ needs.rpm.outputs.version }}.noarch.rpm
112112
path: .

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python-version: '3.11'
1717

1818
- name: Cache Python modules
19-
uses: actions/cache@v1
19+
uses: actions/cache@v4
2020
env:
2121
cache-name: cache-node-modules
2222
with:

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
python-version: '3.11'
5151

5252
- name: Cache Python modules
53-
uses: actions/cache@v1
53+
uses: actions/cache@v4
5454
env:
5555
cache-name: cache-node-modules
5656
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION := $(shell rpmspec -q hstsparser.spec --queryformat='%{version}')
22
RELEASE := $(shell rpmspec -q hstsparser.spec --queryformat='%{release}')
3-
FEDORARELEASE := 38
3+
FEDORARELEASE := 42
44

55
tar:
66
mkdir -p rpmbuild/SOURCES/

0 commit comments

Comments
 (0)