File tree Expand file tree Collapse file tree 5 files changed +37
-20
lines changed
Expand file tree Collapse file tree 5 files changed +37
-20
lines changed Original file line number Diff line number Diff line change 55jobs :
66 shellcheck :
77 name : Shellcheck
8- runs-on : ubuntu-20.04
8+ runs-on : ubuntu-latest
99 steps :
1010 - name : Checkout the repo
11- uses : actions/checkout@v2
11+ uses : actions/checkout@v3
12+
1213 - name : Lint Bash scripts
1314 uses : ludeeus/action-shellcheck@master
1415 env :
1516 SHELLCHECK_OPTS : -x
1617 with :
1718 scandir : " ./scripts"
19+
1820 - name : Lint Dockerfile
19- uses : brpaz/hadolint-action@v1.2.1
21+ uses : brpaz/hadolint-action@v3
2022 with :
2123 dockerfile : Dockerfile
Original file line number Diff line number Diff line change 66
77jobs :
88 image :
9- runs-on : ubuntu-20.04
9+ runs-on : ubuntu-latest
1010 steps :
1111 - name : Checkout the repo
12- uses : actions/checkout@v2
12+ uses : actions/checkout@v3
13+
1314 - name : Import environment variables
1415 shell : bash
1516 run : |
1617 while read line; do
1718 echo "$line" >> $GITHUB_ENV
1819 done < assets/variables
20+
1921 - name : Set up Docker buildx
2022 id : buildx
21- uses : docker/setup-buildx-action@master
23+ uses : docker/setup-buildx-action@2
24+
2225 - name : Login to Docker Hub
23- uses : docker/login-action@v1
26+ uses : docker/login-action@v2
2427 with :
2528 username : ${{ secrets.DOCKERHUB_USERNAME }}
2629 password : ${{ secrets.DOCKERHUB_TOKEN }}
30+
2731 - name : Build and push Docker image
28- uses : docker/build-push-action@v2
32+ uses : docker/build-push-action@v3
2933 with :
3034 context : .
3135 file : ./Dockerfile
Original file line number Diff line number Diff line change 1515
1616jobs :
1717 check :
18- runs-on : ubuntu-20.04
18+ runs-on : ubuntu-latest
1919 outputs :
2020 pkg_version : ${{ steps.var.outputs.pkg_version }}
2121 steps :
2222 - name : Checkout the repo
23- uses : actions/checkout@v2
23+ uses : actions/checkout@v3
2424
2525 - name : Check last version
2626 run : bash ./scripts/check-last-version.bash
@@ -37,14 +37,14 @@ jobs:
3737 run : . ./scripts/set-env-vars.bash
3838
3939 artifact :
40- runs-on : ubuntu-20.04
40+ runs-on : ubuntu-latest
4141 needs : check
4242 container : mpsq/emacs-builder:latest
4343 env :
4444 PKG_VERSION : ${{ needs.check.outputs.pkg_version }}
4545 steps :
4646 - name : Checkout the repo
47- uses : actions/checkout@v2
47+ uses : actions/checkout@v3
4848
4949 - name : Import environment variables
5050 shell : bash
5656 - name : Build artifacts
5757 run : bash ./scripts/build-artifacts.bash
5858
59+ # This action is deprecated
60+ # TODO: Find a replacement
5961 - name : Create release
6062 id : create_release
6163 uses : actions/create-release@v1
6870 draft : false
6971 prerelease : false
7072
73+ # This action is deprecated
74+ # TODO: Find a replacement
7175 - name : Upload release asset
7276 id : upload-release-asset
7377 continue-on-error : true
Original file line number Diff line number Diff line change 1515
1616jobs :
1717 check :
18- runs-on : ubuntu-20.04
18+ runs-on : ubuntu-latest
19+ outputs :
20+ pkg_version : ${{ steps.var.outputs.pkg_version }}
1921 steps :
2022 - name : Checkout the repo
21- uses : actions/checkout@v2
23+ uses : actions/checkout@v3
24+
2225 - name : Check last version
2326 run : bash ./scripts/check-last-version.bash
27+
2428 - name : Import environment variables
2529 shell : bash
2630 run : |
2731 while read line; do
2832 echo "$line" >> $GITHUB_ENV
2933 done < assets/variables
34+
3035 - name : Set env vars
3136 id : var
3237 run : . ./scripts/set-env-vars.bash
33- outputs :
34- pkg_version : ${{ steps.var.outputs.pkg_version }}
3538
3639 artifact :
37- runs-on : ubuntu-20.04
40+ runs-on : ubuntu-latest
3841 needs : check
3942 container : mpsq/emacs-builder:latest
4043 env :
4144 PKG_VERSION : ${{ needs.check.outputs.pkg_version }}
4245 steps :
4346 - name : Checkout the repo
44- uses : actions/checkout@v2
47+ uses : actions/checkout@v3
48+
4549 - name : Import environment variables
4650 shell : bash
4751 run : |
4852 while read line; do
4953 echo "$line" >> $GITHUB_ENV
5054 done < assets/variables
55+
5156 - name : Patch glibc
5257 run : bash ./scripts/patch-glibc.bash
58+
5359 - name : Build artifacts
5460 run : bash ./scripts/build-artifacts.bash
61+
5562 - name : Upload artifacts
56- uses : actions/upload-artifact@v2
63+ uses : actions/upload-artifact@v3
5764 with :
5865 name : emacs-manual-build
5966 path : ${{ env.USR_HOME }}/${{ needs.check.outputs.pkg_version }}.tar.gz
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ PKG_VERSION+="$NEW_COMMIT_N"
1414
1515# Export to env var + github action var
1616export PKG_VERSION=" ${PKG_VERSION} "
17- echo " ::set-output name= pkg_version:: ${ PKG_VERSION} "
17+ echo " pkg_version= $ PKG_VERSION" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments