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
6262 echo "${{ github.ref }}" | cut -dv -f2 > VERSION.txt
6363 git add VERSION.txt
6464 git diff --quiet && git diff --staged --quiet || git commit -m "${COMMIT_MSG}"
65- git push origin master
65+ git push origin main
6666 - name : Update debian changelog
6767 env :
6868 EMAIL : furlongm@gmail.com
7272 skip-checks: true
7373 run : |
7474 gbp dch --new-version=$(cat VERSION.txt)-1 --release --distribution=stable --spawn-editor=never --commit --commit-msg="${COMMIT_MSG}"
75- git push origin master
75+ git push origin main
7676 build-and-upload-deb-assets :
7777 needs : update-version-and-changelog
7878 runs-on : ubuntu-latest
@@ -88,10 +88,10 @@ jobs:
8888 run : |
8989 rm /bin/sh
9090 ln -sf /bin/bash /bin/sh
91- - uses : actions/checkout@v3
91+ - uses : actions/checkout@v4
9292 with :
9393 fetch-depth : 0
94- ref : master
94+ ref : main
9595 - name : git fetch --all
9696 run : |
9797 git config --global --add safe.directory /__w/patchman/patchman
@@ -101,7 +101,7 @@ jobs:
101101 export version=$(echo "${{ github.ref }}" | cut -dv -f2)
102102 echo "version=${version}" >> $GITHUB_ENV
103103 - name : Download upload_url artifact
104- uses : actions/download-artifact@v1
104+ uses : actions/download-artifact@v4
105105 with :
106106 name : upload_url.txt
107107 path : /home/runner/work/patchman/patchman
@@ -126,7 +126,7 @@ jobs:
126126 git tag v${version}
127127 gbp buildpackage --git-upstream-tree=${{ github.ref }} -uc -us
128128 - name : Upload python3-patchman deb
129- uses : actions/upload-release-asset@v1.0.1
129+ uses : actions/upload-release-asset@v1
130130 env :
131131 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132132 with :
@@ -135,7 +135,7 @@ jobs:
135135 asset_path : ../${{ format('python3-patchman_{0}-1_all.deb', env.version) }}
136136 asset_content_type : application/vnd.debian.binary-package
137137 - name : Upload patchman-client deb
138- uses : actions/upload-release-asset@v1.0.1
138+ uses : actions/upload-release-asset@v1
139139 env :
140140 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
141141 with :
@@ -153,10 +153,10 @@ jobs:
153153 run : |
154154 dnf -y install epel-release
155155 dnf -y install rpm-build python3 python3-setuptools git
156- - uses : actions/checkout@v3
156+ - uses : actions/checkout@v4
157157 with :
158158 fetch-depth : 0
159- ref : master
159+ ref : main
160160 - name : git fetch --all
161161 run : |
162162 git config --global --add safe.directory /__w/patchman/patchman
@@ -166,7 +166,7 @@ jobs:
166166 export version=$(echo "${{ github.ref }}" | cut -dv -f2)
167167 echo "version=${version}" >> $GITHUB_ENV
168168 - name : Download upload_url artifact
169- uses : actions/download-artifact@v1
169+ uses : actions/download-artifact@v4
170170 with :
171171 name : upload_url.txt
172172 path : /home/runner/work/patchman/patchman
@@ -180,7 +180,7 @@ jobs:
180180 python3 setup.py bdist_rpm --python=/usr/bin/python3
181181 rpmbuild -bb patchman-client.spec
182182 - name : Upload patchman rpm
183- uses : actions/upload-release-asset@v1.0.1
183+ uses : actions/upload-release-asset@v1
184184 env :
185185 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
186186 with :
@@ -189,7 +189,7 @@ jobs:
189189 asset_path : ${{ format('dist/patchman-{0}-1.noarch.rpm', env.version) }}
190190 asset_content_type : application/x-rpm
191191 - name : Upload patchman-client rpm
192- uses : actions/upload-release-asset@v1.0.1
192+ uses : actions/upload-release-asset@v1
193193 env :
194194 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
195195 with :
@@ -201,9 +201,9 @@ jobs:
201201 needs : update-version-and-changelog
202202 runs-on : ubuntu-latest
203203 steps :
204- - uses : actions/checkout@v3
204+ - uses : actions/checkout@v4
205205 - name : Set up python
206- uses : actions/setup-python@v4
206+ uses : actions/setup-python@v5
207207 with :
208208 python-version : ' 3.x'
209209 - name : Set version
0 commit comments