aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/builds.yml
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-21 18:27:00 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-21 18:27:00 -0700
commit6259bb8833a10c1e3dcc84f418946bcf2db40f25 (patch)
treeceaf71f17493c1f8db4b9d37c9a17b006d5935bc /.github/workflows/builds.yml
parentfix: custom services developer documentation link leads to franz pape (#1493) (diff)
downloadferdium-app-6259bb8833a10c1e3dcc84f418946bcf2db40f25.tar.gz
ferdium-app-6259bb8833a10c1e3dcc84f418946bcf2db40f25.tar.zst
ferdium-app-6259bb8833a10c1e3dcc84f418946bcf2db40f25.zip
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
Diffstat (limited to '.github/workflows/builds.yml')
-rw-r--r--.github/workflows/builds.yml30
1 files changed, 15 insertions, 15 deletions
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:
40 should_run: ${{ steps.should_run.outputs.should_run }} 40 should_run: ${{ steps.should_run.outputs.should_run }}
41 steps: 41 steps:
42 - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' 42 - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled'
43 uses: actions/checkout@v3 43 uses: actions/checkout@v4
44 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} 44 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }}
45 with: 45 with:
46 ref: nightly 46 ref: nightly
@@ -50,14 +50,14 @@ jobs:
50 uses: pnpm/action-setup@v2 50 uses: pnpm/action-setup@v2
51 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} 51 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }}
52 - name: Use Node.js specified in the '.nvmrc' file 52 - name: Use Node.js specified in the '.nvmrc' file
53 uses: actions/setup-node@v3 53 uses: actions/setup-node@v4
54 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} 54 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }}
55 with: 55 with:
56 node-version-file: '.nvmrc' 56 node-version-file: '.nvmrc'
57 cache: 'pnpm' 57 cache: 'pnpm'
58 - name: Install node dependencies 58 - name: Install node dependencies
59 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} 59 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }}
60 uses: nick-fields/retry@v2.8.3 60 uses: nick-fields/retry@v2
61 with: 61 with:
62 command: pnpm i 62 command: pnpm i
63 timeout_minutes: 15 63 timeout_minutes: 15
@@ -141,14 +141,14 @@ jobs:
141 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV 141 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV
142 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV 142 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV
143 - 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 143 - 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
144 uses: actions/checkout@v3 144 uses: actions/checkout@v4
145 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} 145 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }}
146 with: 146 with:
147 submodules: recursive 147 submodules: recursive
148 fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging 148 fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging
149 ref: nightly 149 ref: nightly
150 - 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 150 - 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
151 uses: actions/checkout@v3 151 uses: actions/checkout@v4
152 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} 152 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }}
153 with: 153 with:
154 submodules: recursive 154 submodules: recursive
@@ -173,12 +173,12 @@ jobs:
173 - name: Install pnpm 173 - name: Install pnpm
174 uses: pnpm/action-setup@v2 174 uses: pnpm/action-setup@v2
175 - name: Use Node.js specified in the '.nvmrc' file 175 - name: Use Node.js specified in the '.nvmrc' file
176 uses: actions/setup-node@v3 176 uses: actions/setup-node@v4
177 with: 177 with:
178 node-version-file: '.nvmrc' 178 node-version-file: '.nvmrc'
179 cache: 'pnpm' 179 cache: 'pnpm'
180 - name: Install node dependencies 180 - name: Install node dependencies
181 uses: nick-fields/retry@v2.8.3 181 uses: nick-fields/retry@v2
182 with: 182 with:
183 command: pnpm i 183 command: pnpm i
184 timeout_minutes: 15 184 timeout_minutes: 15
@@ -220,14 +220,14 @@ jobs:
220 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV 220 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV
221 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV 221 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV
222 - 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 222 - 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
223 uses: actions/checkout@v3 223 uses: actions/checkout@v4
224 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} 224 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }}
225 with: 225 with:
226 submodules: recursive 226 submodules: recursive
227 fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging 227 fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging
228 ref: nightly 228 ref: nightly
229 - 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 229 - 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
230 uses: actions/checkout@v3 230 uses: actions/checkout@v4
231 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} 231 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }}
232 with: 232 with:
233 submodules: recursive 233 submodules: recursive
@@ -252,12 +252,12 @@ jobs:
252 - name: Install pnpm 252 - name: Install pnpm
253 uses: pnpm/action-setup@v2 253 uses: pnpm/action-setup@v2
254 - name: Use Node.js specified in the '.nvmrc' file 254 - name: Use Node.js specified in the '.nvmrc' file
255 uses: actions/setup-node@v3 255 uses: actions/setup-node@v4
256 with: 256 with:
257 node-version-file: '.nvmrc' 257 node-version-file: '.nvmrc'
258 cache: 'pnpm' 258 cache: 'pnpm'
259 - name: Install node dependencies 259 - name: Install node dependencies
260 uses: nick-fields/retry@v2.8.3 260 uses: nick-fields/retry@v2
261 with: 261 with:
262 command: pnpm i 262 command: pnpm i
263 timeout_minutes: 15 263 timeout_minutes: 15
@@ -320,14 +320,14 @@ jobs:
320 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV 320 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV
321 shell: bash 321 shell: bash
322 - 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 322 - 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
323 uses: actions/checkout@v3 323 uses: actions/checkout@v4
324 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} 324 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }}
325 with: 325 with:
326 submodules: recursive 326 submodules: recursive
327 fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging 327 fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging
328 ref: nightly 328 ref: nightly
329 - 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 329 - 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
330 uses: actions/checkout@v3 330 uses: actions/checkout@v4
331 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} 331 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }}
332 with: 332 with:
333 submodules: recursive 333 submodules: recursive
@@ -352,7 +352,7 @@ jobs:
352 - name: Install pnpm 352 - name: Install pnpm
353 uses: pnpm/action-setup@v2 353 uses: pnpm/action-setup@v2
354 - name: Use Node.js specified in the '.nvmrc' file 354 - name: Use Node.js specified in the '.nvmrc' file
355 uses: actions/setup-node@v3 355 uses: actions/setup-node@v4
356 with: 356 with:
357 node-version-file: '.nvmrc' 357 node-version-file: '.nvmrc'
358 cache: 'pnpm' 358 cache: 'pnpm'
@@ -365,7 +365,7 @@ jobs:
365 sed -i 's/\/usr\/bin\/env node/node/g' "$PNPM_BASEDIR/pnpm/bin/pnpm.cjs" 365 sed -i 's/\/usr\/bin\/env node/node/g' "$PNPM_BASEDIR/pnpm/bin/pnpm.cjs"
366 shell: bash 366 shell: bash
367 - name: Install node dependencies 367 - name: Install node dependencies
368 uses: nick-fields/retry@v2.8.3 368 uses: nick-fields/retry@v2
369 with: 369 with:
370 command: pnpm i 370 command: pnpm i
371 timeout_minutes: 15 371 timeout_minutes: 15