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/builds.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to '.github/workflows/builds.yml') diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 8e5f6c9bf..bb0984368 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -40,7 +40,7 @@ jobs: should_run: ${{ steps.should_run.outputs.should_run }} steps: - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} with: ref: nightly @@ -50,14 +50,14 @@ jobs: uses: pnpm/action-setup@v2 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} - name: Use Node.js specified in the '.nvmrc' file - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} with: node-version-file: '.nvmrc' cache: 'pnpm' - name: Install node dependencies if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} - uses: nick-fields/retry@v2.8.3 + uses: nick-fields/retry@v2 with: command: pnpm i timeout_minutes: 15 @@ -141,14 +141,14 @@ jobs: echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' or this is a forced rebuild on the nightly branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} with: submodules: recursive fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging ref: nightly - name: Checkout code along with submodules for any branch if the trigger event is NOT 'scheduled' and this is NOT a forced rebuild on the nightly branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} with: submodules: recursive @@ -173,12 +173,12 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v2 - name: Use Node.js specified in the '.nvmrc' file - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'pnpm' - name: Install node dependencies - uses: nick-fields/retry@v2.8.3 + uses: nick-fields/retry@v2 with: command: pnpm i timeout_minutes: 15 @@ -220,14 +220,14 @@ jobs: echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' or this is a forced rebuild on the nightly branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} with: submodules: recursive fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging ref: nightly - name: Checkout code along with submodules for any branch if the trigger event is NOT 'scheduled' and this is NOT a forced rebuild on the nightly branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} with: submodules: recursive @@ -252,12 +252,12 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v2 - name: Use Node.js specified in the '.nvmrc' file - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'pnpm' - name: Install node dependencies - uses: nick-fields/retry@v2.8.3 + uses: nick-fields/retry@v2 with: command: pnpm i timeout_minutes: 15 @@ -320,14 +320,14 @@ jobs: echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV shell: bash - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' or this is a forced rebuild on the nightly branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} with: submodules: recursive fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging ref: nightly - name: Checkout code along with submodules for any branch if the trigger event is NOT 'scheduled' and this is NOT a forced rebuild on the nightly branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} with: submodules: recursive @@ -352,7 +352,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v2 - name: Use Node.js specified in the '.nvmrc' file - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'pnpm' @@ -365,7 +365,7 @@ jobs: sed -i 's/\/usr\/bin\/env node/node/g' "$PNPM_BASEDIR/pnpm/bin/pnpm.cjs" shell: bash - name: Install node dependencies - uses: nick-fields/retry@v2.8.3 + uses: nick-fields/retry@v2 with: command: pnpm i timeout_minutes: 15 -- cgit v1.2.3-70-g09d2