From 3967c4ecc8dd17a0aeefe7d9c856d3925de2267a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 13 May 2024 01:47:33 +0100 Subject: [PATCH] ci(actions): update all actions to latest versions to avoid deprecation warnings --- .github/workflows/_build.yml | 24 ++++++++++++------------ .github/workflows/_prepare.yml | 6 +++--- .github/workflows/_release.yml | 6 +++--- .github/workflows/update-metadata.yml | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index af41c67..ed5588f 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -78,7 +78,7 @@ jobs: test_plan_args: ${{ steps.test_plan_args.outputs.args }} steps: - name: Download emacs-builder git SHA artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: emacs-builder-git-sha path: ./ @@ -108,7 +108,7 @@ jobs: with: repository: jimeh/build-emacs-for-macos ref: ${{ needs.prepare.outputs.builder_sha }} - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 if: ${{ inputs.os != inputs.build_os }} with: go-version: "1.21" @@ -117,7 +117,7 @@ jobs: run: make build - name: Download pre-built emacs-builder artifact if: ${{ inputs.os == inputs.build_os }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: emacs-builder path: bin @@ -136,7 +136,7 @@ jobs: - name: Show plan run: cat build-plan.yml - name: Upload build-plan artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifact_prefix }}build-plan path: build-plan.yml @@ -177,7 +177,7 @@ jobs: run: make bootstrap working-directory: builder - name: Download build-plan artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ inputs.artifact_prefix }}build-plan path: ./ @@ -192,13 +192,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload unsigned app artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifact_prefix }}unsigned-app path: builds/*.tbz if-no-files-found: error - name: Upload Emacs source artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifact_prefix }}emacs-source path: builder/tarballs/*.tgz @@ -207,26 +207,26 @@ jobs: runs-on: ${{ inputs.os }} needs: [prepare, plan, build] steps: - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.11" - name: Install dmgbuild run: | $(command -v pip3 || command -v pip) install --upgrade dmgbuild - name: Download pre-built emacs-builder artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: emacs-builder path: bin - name: Ensure emacs-builder is executable run: chmod +x bin/emacs-builder - name: Download build-plan artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ inputs.artifact_prefix }}build-plan path: ./ - name: Download unsigned app artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ inputs.artifact_prefix }}unsigned-app path: builds @@ -266,7 +266,7 @@ jobs: AC_PROVIDER: ${{ secrets.AC_PROVIDER }} AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }} - name: Upload disk image artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifact_prefix }}dmg path: | diff --git a/.github/workflows/_prepare.yml b/.github/workflows/_prepare.yml index f4d3535..5470e06 100644 --- a/.github/workflows/_prepare.yml +++ b/.github/workflows/_prepare.yml @@ -31,18 +31,18 @@ jobs: run: | git rev-parse HEAD > emacs-builder-git-sha.txt - name: Upload builder git SHA artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: emacs-builder-git-sha path: emacs-builder-git-sha.txt if-no-files-found: error - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: "1.21" - name: Build emacs-builder tool run: make build - name: Upload emacs-builder artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: emacs-builder path: bin/emacs-builder diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index af15146..f2e7642 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -36,21 +36,21 @@ jobs: runs-on: ${{ inputs.os }} steps: - name: Download pre-built emacs-builder artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: emacs-builder path: bin - name: Ensure emacs-builder is executable run: chmod +x bin/emacs-builder - name: Download build-plan.yml artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ inputs.plan_artifact }} path: ./ - name: Download disk image artifacts id: dmg continue-on-error: true - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ inputs.dmg_artifact }} path: builds diff --git a/.github/workflows/update-metadata.yml b/.github/workflows/update-metadata.yml index 107617f..89b8393 100644 --- a/.github/workflows/update-metadata.yml +++ b/.github/workflows/update-metadata.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 with: ref: meta - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: "1.21" - name: update total downloads shield JSON