88 create-release :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v3
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@v3
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 :
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 :
6768 EMAIL : furlongm@gmail.com
@@ -71,12 +72,12 @@ jobs:
7172 skip-checks: true
7273 run : |
7374 gbp dch --new-version=$(cat VERSION.txt)-1 --release --distribution=stable --spawn-editor=never --commit --commit-msg="${COMMIT_MSG}"
74- git push origin master
75+ git push origin main
7576 build-and-upload-deb-assets :
7677 needs : update-version-and-changelog
7778 runs-on : ubuntu-latest
7879 container :
79- image : debian:buster
80+ image : debian:bookworm
8081 steps :
8182 - name : Install build dependencies
8283 run : |
@@ -87,10 +88,10 @@ jobs:
8788 run : |
8889 rm /bin/sh
8990 ln -sf /bin/bash /bin/sh
90- - uses : actions/checkout@v3
91+ - uses : actions/checkout@v4
9192 with :
9293 fetch-depth : 0
93- ref : master
94+ ref : main
9495 - name : git fetch --all
9596 run : |
9697 git config --global --add safe.directory /__w/patchman/patchman
@@ -100,7 +101,7 @@ jobs:
100101 export version=$(echo "${{ github.ref }}" | cut -dv -f2)
101102 echo "version=${version}" >> $GITHUB_ENV
102103 - name : Download upload_url artifact
103- uses : actions/download-artifact@v1
104+ uses : actions/download-artifact@v4
104105 with :
105106 name : upload_url.txt
106107 path : /home/runner/work/patchman/patchman
@@ -111,6 +112,7 @@ jobs:
111112 echo "upload_url=${upload_url}" >> $GITHUB_ENV
112113 - name : Build deb packages
113114 env :
115+ EMAIL : furlongm@gmail.com
114116 COMMIT_MSG : |
115117 auto-commit
116118 skip-checks: true
@@ -124,7 +126,7 @@ jobs:
124126 git tag v${version}
125127 gbp buildpackage --git-upstream-tree=${{ github.ref }} -uc -us
126128 - name : Upload python3-patchman deb
127- uses : actions/upload-release-asset@v1.0.1
129+ uses : actions/upload-release-asset@v1
128130 env :
129131 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
130132 with :
@@ -133,7 +135,7 @@ jobs:
133135 asset_path : ../${{ format('python3-patchman_{0}-1_all.deb', env.version) }}
134136 asset_content_type : application/vnd.debian.binary-package
135137 - name : Upload patchman-client deb
136- uses : actions/upload-release-asset@v1.0.1
138+ uses : actions/upload-release-asset@v1
137139 env :
138140 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
139141 with :
@@ -145,16 +147,16 @@ jobs:
145147 needs : update-version-and-changelog
146148 runs-on : ubuntu-latest
147149 container :
148- image : quay.io/centos/centos:stream8
150+ image : quay.io/centos/centos:stream9
149151 steps :
150152 - name : Install build dependencies
151153 run : |
152154 dnf -y install epel-release
153155 dnf -y install rpm-build python3 python3-setuptools git
154- - uses : actions/checkout@v3
156+ - uses : actions/checkout@v4
155157 with :
156158 fetch-depth : 0
157- ref : master
159+ ref : main
158160 - name : git fetch --all
159161 run : |
160162 git config --global --add safe.directory /__w/patchman/patchman
@@ -164,7 +166,7 @@ jobs:
164166 export version=$(echo "${{ github.ref }}" | cut -dv -f2)
165167 echo "version=${version}" >> $GITHUB_ENV
166168 - name : Download upload_url artifact
167- uses : actions/download-artifact@v1
169+ uses : actions/download-artifact@v4
168170 with :
169171 name : upload_url.txt
170172 path : /home/runner/work/patchman/patchman
@@ -178,7 +180,7 @@ jobs:
178180 python3 setup.py bdist_rpm --python=/usr/bin/python3
179181 rpmbuild -bb patchman-client.spec
180182 - name : Upload patchman rpm
181- uses : actions/upload-release-asset@v1.0.1
183+ uses : actions/upload-release-asset@v1
182184 env :
183185 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
184186 with :
@@ -187,7 +189,7 @@ jobs:
187189 asset_path : ${{ format('dist/patchman-{0}-1.noarch.rpm', env.version) }}
188190 asset_content_type : application/x-rpm
189191 - name : Upload patchman-client rpm
190- uses : actions/upload-release-asset@v1.0.1
192+ uses : actions/upload-release-asset@v1
191193 env :
192194 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
193195 with :
@@ -199,9 +201,9 @@ jobs:
199201 needs : update-version-and-changelog
200202 runs-on : ubuntu-latest
201203 steps :
202- - uses : actions/checkout@v3
204+ - uses : actions/checkout@v4
203205 - name : Set up python
204- uses : actions/setup-python@v4
206+ uses : actions/setup-python@v5
205207 with :
206208 python-version : ' 3.x'
207209 - name : Set version
0 commit comments