88 create-release :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v2
11+ - uses : actions/checkout@v4
1212 with :
1313 fetch-depth : 0
14- ref : master
14+ ref : main
1515 - name : git fetch --all
1616 run : |
1717 git fetch --all
@@ -29,18 +29,18 @@ jobs:
2929 run : |
3030 echo "${{ steps.create_release.outputs.upload_url }}" > upload_url.txt
3131 - name : Upload upload_url artifact
32- uses : actions/upload-artifact@v1
32+ uses : actions/upload-artifact@v4
3333 with :
3434 name : upload_url.txt
3535 path : upload_url.txt
3636 update-version-and-changelog :
3737 needs : create-release
3838 runs-on : ubuntu-latest
3939 steps :
40- - uses : actions/checkout@v2
40+ - uses : actions/checkout@v4
4141 with :
4242 fetch-depth : 0
43- ref : master
43+ ref : main
4444 - name : git fetch --all
4545 run : |
4646 git fetch --all
5050 git config user.name 'Marcus Furlong'
5151 - name : Install dependencies
5252 run : |
53+ sudo apt update
5354 sudo apt -y install python3-setuptools debhelper dh-exec dh-python git-buildpackage
5455 - name : Update repo version if required
5556 env :
@@ -61,21 +62,22 @@ jobs:
6162 echo "${{ github.ref }}" | cut -dv -f2 > VERSION.txt
6263 git add VERSION.txt
6364 git diff --quiet && git diff --staged --quiet || git commit -m "${COMMIT_MSG}"
64- git push origin master
65+ git push origin main
6566 - name : Update debian changelog
6667 env :
68+ EMAIL : furlongm@gmail.com
6769 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6870 COMMIT_MSG : |
6971 auto-commit to update debian changelog
7072 skip-checks: true
7173 run : |
7274 gbp dch --new-version=$(cat VERSION.txt)-1 --release --distribution=stable --spawn-editor=never --commit --commit-msg="${COMMIT_MSG}"
73- git push origin master
75+ git push origin main
7476 build-and-upload-deb-assets :
7577 needs : update-version-and-changelog
7678 runs-on : ubuntu-latest
7779 container :
78- image : debian:buster
80+ image : debian:bookworm
7981 steps :
8082 - name : Install build dependencies
8183 run : |
@@ -86,19 +88,20 @@ jobs:
8688 run : |
8789 rm /bin/sh
8890 ln -sf /bin/bash /bin/sh
89- - uses : actions/checkout@v2
91+ - uses : actions/checkout@v4
9092 with :
9193 fetch-depth : 0
92- ref : master
94+ ref : main
9395 - name : git fetch --all
9496 run : |
97+ git config --global --add safe.directory /__w/patchman/patchman
9598 git fetch --all
9699 - name : Get version
97100 run : |
98101 export version=$(echo "${{ github.ref }}" | cut -dv -f2)
99102 echo "version=${version}" >> $GITHUB_ENV
100103 - name : Download upload_url artifact
101- uses : actions/download-artifact@v1
104+ uses : actions/download-artifact@v4
102105 with :
103106 name : upload_url.txt
104107 path : /home/runner/work/patchman/patchman
@@ -109,6 +112,7 @@ jobs:
109112 echo "upload_url=${upload_url}" >> $GITHUB_ENV
110113 - name : Build deb packages
111114 env :
115+ EMAIL : furlongm@gmail.com
112116 COMMIT_MSG : |
113117 auto-commit
114118 skip-checks: true
@@ -122,7 +126,7 @@ jobs:
122126 git tag v${version}
123127 gbp buildpackage --git-upstream-tree=${{ github.ref }} -uc -us
124128 - name : Upload python3-patchman deb
125- uses : actions/upload-release-asset@v1.0.1
129+ uses : actions/upload-release-asset@v1
126130 env :
127131 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
128132 with :
@@ -131,7 +135,7 @@ jobs:
131135 asset_path : ../${{ format('python3-patchman_{0}-1_all.deb', env.version) }}
132136 asset_content_type : application/vnd.debian.binary-package
133137 - name : Upload patchman-client deb
134- uses : actions/upload-release-asset@v1.0.1
138+ uses : actions/upload-release-asset@v1
135139 env :
136140 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
137141 with :
@@ -143,25 +147,26 @@ jobs:
143147 needs : update-version-and-changelog
144148 runs-on : ubuntu-latest
145149 container :
146- image : quay.io/centos/centos:stream8
150+ image : quay.io/centos/centos:stream9
147151 steps :
148152 - name : Install build dependencies
149153 run : |
150154 dnf -y install epel-release
151155 dnf -y install rpm-build python3 python3-setuptools git
152- - uses : actions/checkout@v2
156+ - uses : actions/checkout@v4
153157 with :
154158 fetch-depth : 0
155- ref : master
159+ ref : main
156160 - name : git fetch --all
157161 run : |
162+ git config --global --add safe.directory /__w/patchman/patchman
158163 git fetch --all
159164 - name : Get version
160165 run : |
161166 export version=$(echo "${{ github.ref }}" | cut -dv -f2)
162167 echo "version=${version}" >> $GITHUB_ENV
163168 - name : Download upload_url artifact
164- uses : actions/download-artifact@v1
169+ uses : actions/download-artifact@v4
165170 with :
166171 name : upload_url.txt
167172 path : /home/runner/work/patchman/patchman
@@ -175,7 +180,7 @@ jobs:
175180 python3 setup.py bdist_rpm --python=/usr/bin/python3
176181 rpmbuild -bb patchman-client.spec
177182 - name : Upload patchman rpm
178- uses : actions/upload-release-asset@v1.0.1
183+ uses : actions/upload-release-asset@v1
179184 env :
180185 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
181186 with :
@@ -184,7 +189,7 @@ jobs:
184189 asset_path : ${{ format('dist/patchman-{0}-1.noarch.rpm', env.version) }}
185190 asset_content_type : application/x-rpm
186191 - name : Upload patchman-client rpm
187- uses : actions/upload-release-asset@v1.0.1
192+ uses : actions/upload-release-asset@v1
188193 env :
189194 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
190195 with :
@@ -196,9 +201,9 @@ jobs:
196201 needs : update-version-and-changelog
197202 runs-on : ubuntu-latest
198203 steps :
199- - uses : actions/checkout@v2
204+ - uses : actions/checkout@v4
200205 - name : Set up python
201- uses : actions/setup-python@v1
206+ uses : actions/setup-python@v5
202207 with :
203208 python-version : ' 3.x'
204209 - name : Set version
0 commit comments