From 6259bb8833a10c1e3dcc84f418946bcf2db40f25 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Thu, 21 Dec 2023 18:27:00 -0700 Subject: ci: update various github actions to latest (#1494) - update `actions/checkout` from v3 to v4 - update `actions/setup-node` from v3 to v4 - change `nick-fields/retry` from v2.8.3 to v2 - update `bluwy/release-for-reddit-action` from v1.2.0 to v2 - lock all CI runners to fixed version rather than latest --- .github/workflows/tag-repos.yml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to '.github/workflows/tag-repos.yml') diff --git a/.github/workflows/tag-repos.yml b/.github/workflows/tag-repos.yml index 6ef055e7b..0e5de76a5 100644 --- a/.github/workflows/tag-repos.yml +++ b/.github/workflows/tag-repos.yml @@ -8,27 +8,27 @@ on: jobs: tag-repos: - runs-on: macos-latest + runs-on: macos-12 steps: - - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'release' - uses: actions/checkout@v3 - if: ${{ contains(github.event.release.tag_name, 'nightly') || (github.event_name == 'workflow_dispatch') }} - with: - ref: nightly - submodules: recursive - fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging - - name: Checkout code along with submodules for the 'release' branch if the trigger event is 'release' - uses: actions/checkout@v3 - if: ${{ !contains(github.event.release.tag_name, 'nightly') }} - with: - ref: release - submodules: recursive - fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging - - name: Extract Git tag name from the currently checked out branch (not from the branch where this run was kicked off) - run: | - TAG_NAME=$(node -p 'require("./package.json").version') - echo "TAG_NAME=v$TAG_NAME" >> $GITHUB_ENV - shell: bash + - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'release' + uses: actions/checkout@v4 + if: ${{ contains(github.event.release.tag_name, 'nightly') || (github.event_name == 'workflow_dispatch') }} + with: + ref: nightly + submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging + - name: Checkout code along with submodules for the 'release' branch if the trigger event is 'release' + uses: actions/checkout@v4 + if: ${{ !contains(github.event.release.tag_name, 'nightly') }} + with: + ref: release + submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging + - name: Extract Git tag name from the currently checked out branch (not from the branch where this run was kicked off) + run: | + TAG_NAME=$(node -p 'require("./package.json").version') + echo "TAG_NAME=v$TAG_NAME" >> $GITHUB_ENV + shell: bash # Note: commented out the tagging of the main repo - since that is auto-created when a new release is published # - name: Tag the main repo # run: | -- cgit v1.2.3-54-g00ecf