Skip to content

Commit 83be1fd

Browse files
ci(actions): Update workflow templates from organization template repository
Signed-off-by: GitHub <noreply@github.com>
1 parent 2994adc commit 83be1fd

12 files changed

Lines changed: 46 additions & 51 deletions

.github/actions-lock.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
22
# SPDX-License-Identifier: MIT
3-
3db54dfe0671bf6c30556a5bb6487c22 block-merge-freeze.yml
4-
30c9fe81a0a80bcf36cc7d441fcb8f9d block-unconventional-commits.yml
5-
0c3e9b2e56e1b2590a005a80b55c3218 command-compile.yml
6-
4cb6e4935d3f2bc1e3c99c77739118ca cypress.yml
7-
cbffe424c47647a2e375f96f25b67af9 dependabot-approve-merge.yml
3+
25fc4c7e69e778e20bdc9eb0cc96367e block-merge-freeze.yml
4+
d42c24e161cb75a6394cb8bd347b9467 block-unconventional-commits.yml
5+
a1c367dbac08581d6565e3b84a0eaf96 command-compile.yml
6+
50a42e15446606d29b90b2cfa1d26847 cypress.yml
7+
7dd8d21d9dd013196cd4bdbf7c24db6f dependabot-approve-merge.yml
88
2581a67c5bcdcd570427e6d51db767d7 fixup.yml
9-
54f293d9abe11ac0035a7bbb96a4e453 lint-eslint.yml
9+
7bcfba381bfb7c28d9ef6a7d55ac937b lint-eslint.yml
1010
ccd8a55c60e35b84becb0f7005ce1286 lint-php-cs.yml
1111
5dcc3187a9460cb62a455235cbdb3562 lint-php.yml
12-
cf229fbf443d2f7a303f22eb92745811 lint-stylelint.yml
13-
c965845a0def7b39d872e47e93dd1139 node.yml
14-
2d1e4038ee445a9fc1dcdb10c8036d34 npm-audit-fix.yml
12+
bd5b5245dc07b5779031e13817663a3e lint-stylelint.yml
13+
c98e518ff87d052a1236ac3fc40d2bc1 node.yml
14+
e54d4276168426a10219333cf10e0d10 npm-audit-fix.yml
1515
3c4a096b3b7dbaef0f8e5190ffe13518 pr-feedback.yml
16-
2070d9569f327e758b9ce2b924c28fef psalm.yml
16+
a6d8aa0050107ce4d8b6d166d25ca8aa psalm.yml
1717
7db5b820f3750eebe988005a0bb2febd reuse.yml
18-
48c2c657b87747c9faeb589bcce08923 update-stable-titles.yml
18+
22604c31b526de270a080eb19967a638 update-stable-titles.yml

.github/workflows/block-merge-freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Register server reference to fallback to master branch
32-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
32+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3333
with:
3434
github-token: ${{secrets.GITHUB_TOKEN}}
3535
script: |

.github/workflows/block-unconventional-commits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
with:
3232
persist-credentials: false
3333

34-
- uses: webiny/action-conventional-commits@faccb24fc2550dd15c0390d944379d2d8ed9690e # v1.3.1
34+
- uses: webiny/action-conventional-commits@7f91b1595ca1951cdb671ddc9f07a49081ec5b69 # v1.4.2
3535
with:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/command-compile.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Get repository from pull request comment
33-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
33+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3434
id: get-repository
3535
with:
3636
github-token: ${{secrets.GITHUB_TOKEN}}
@@ -59,7 +59,7 @@ jobs:
5959
- name: Add reaction on start
6060
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
6161
with:
62-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
62+
token: ${{ secrets.COMMAND_BOT_PAT }}
6363
repository: ${{ github.event.repository.full_name }}
6464
comment-id: ${{ github.event.comment.id }}
6565
reactions: '+1'
@@ -86,7 +86,7 @@ jobs:
8686
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
8787
if: failure()
8888
with:
89-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
89+
token: ${{ secrets.COMMAND_BOT_PAT }}
9090
repository: ${{ github.event.repository.full_name }}
9191
comment-id: ${{ github.event.comment.id }}
9292
reactions: '-1'
@@ -97,7 +97,7 @@ jobs:
9797

9898
steps:
9999
- name: Restore cached git repository
100-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
100+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
101101
with:
102102
path: .git
103103
key: git-repo
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
# Needed to allow force push later
109109
persist-credentials: true
110-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
110+
token: ${{ secrets.COMMAND_BOT_PAT }}
111111
fetch-depth: 0
112112
ref: ${{ needs.init.outputs.head_ref }}
113113

@@ -124,7 +124,7 @@ jobs:
124124
fallbackNpm: '^11.3'
125125

126126
- name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }}
127-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
127+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
128128
with:
129129
node-version: ${{ steps.package-engines-versions.outputs.nodeVersion }}
130130
cache: npm
@@ -216,7 +216,7 @@ jobs:
216216
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
217217
if: failure()
218218
with:
219-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
219+
token: ${{ secrets.COMMAND_BOT_PAT }}
220220
repository: ${{ github.event.repository.full_name }}
221221
comment-id: ${{ github.event.comment.id }}
222222
reactions: '-1'

.github/workflows/cypress.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
fallbackNpm: '^11.3'
6969

7070
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
71-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
71+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7272
with:
7373
node-version: ${{ steps.versions.outputs.nodeVersion }}
7474

@@ -81,7 +81,7 @@ jobs:
8181
TESTING=true npm run build --if-present
8282
8383
- name: Save context
84-
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
84+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8585
with:
8686
key: cypress-context-${{ github.run_id }}
8787
path: ./
@@ -93,42 +93,39 @@ jobs:
9393
strategy:
9494
fail-fast: false
9595
matrix:
96-
# Please increase the number or runners as your tests suite grows (0 based index for e2e tests)
97-
containers: [0, 1, 2, 3, 4, 5, 6, 7]
98-
# Hack as strategy.job-total includes the component and GitHub does not allow math expressions
99-
# Always align this number with the total of e2e runners (max. index + 1)
100-
total-containers: [8]
96+
# Run multiple copies of the current job in parallel
97+
# Please increase the number or runners as your tests suite grows
98+
containers: ['component', '1', '2', '3']
10199

102100
name: runner ${{ matrix.containers }}
103101

104102
steps:
105103
- name: Restore context
106-
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
104+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
107105
with:
108106
fail-on-cache-miss: true
109107
key: cypress-context-${{ github.run_id }}
110108
path: ./
111109

112110
- name: Set up node ${{ needs.init.outputs.nodeVersion }}
113-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
111+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
114112
with:
115113
node-version: ${{ needs.init.outputs.nodeVersion }}
116114

117115
- name: Set up npm ${{ needs.init.outputs.npmVersion }}
118116
run: npm i -g 'npm@${{ needs.init.outputs.npmVersion }}'
119117

120-
- name: Install cypress
121-
run: ./node_modules/cypress/bin/cypress install
122-
123118
- name: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }} cypress tests
124119
uses: cypress-io/github-action@783cb3f07983868532cabaedaa1e6c00ff4786a8 # v7.1.9
125120
with:
126-
# We already installed the dependencies in the init job
127-
install: false
121+
record: ${{ secrets.CYPRESS_RECORD_KEY && true }}
122+
parallel: ${{ secrets.CYPRESS_RECORD_KEY && true }}
128123
# cypress run type
129124
component: ${{ matrix.containers == 'component' }}
130-
# Do not add Cypress record key config as this conflicts with cypress-split
131-
# Cypress again tries to force users to buy their dashboard...
125+
group: ${{ secrets.CYPRESS_RECORD_KEY && env.CYPRESS_GROUP }}
126+
# cypress env
127+
ci-build-id: ${{ secrets.CYPRESS_RECORD_KEY && env.CYPRESS_BUILD_ID }}
128+
tag: ${{ secrets.CYPRESS_RECORD_KEY && github.event_name }}
132129
env:
133130
# Needs to be prefixed with CYPRESS_
134131
CYPRESS_BRANCH: ${{ env.BRANCH }}
@@ -137,11 +134,12 @@ jobs:
137134
# Needed for some specific code workarounds
138135
TESTING: true
139136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140-
SPLIT: ${{ matrix.total-containers }}
141-
SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }}
137+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
138+
CYPRESS_BUILD_ID: ${{ github.sha }}-${{ github.run_number }}
139+
CYPRESS_GROUP: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }}
142140

143141
- name: Upload snapshots
144-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
142+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
145143
if: always()
146144
with:
147145
name: snapshots_${{ matrix.containers }}
@@ -152,7 +150,7 @@ jobs:
152150
run: docker logs nextcloud-cypress-tests-${{ env.APP_NAME }} > nextcloud.log
153151

154152
- name: Upload NC logs
155-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
153+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
156154
if: failure() && matrix.containers != 'component'
157155
with:
158156
name: nc_logs_${{ matrix.containers }}

.github/workflows/dependabot-approve-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ jobs:
5353
# Enable GitHub auto merge
5454
- name: Auto merge
5555
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # v2.0.0
56-
if: startsWith(steps.branchname.outputs.branch, 'dependabot/')
56+
if: startsWith(steps.branchname.outputs.branch, 'dependabot/') && (github.event.pull_request.action == 'opened' || github.event.pull_request.action == 'reopened')
5757
with:
5858
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-eslint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
fallbackNpm: '^11.3'
6969

7070
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
71-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
71+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7272
with:
7373
node-version: ${{ steps.versions.outputs.nodeVersion }}
7474

.github/workflows/lint-stylelint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fallbackNpm: '^11.3'
3838

3939
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
40-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
40+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4141
with:
4242
node-version: ${{ steps.versions.outputs.nodeVersion }}
4343

.github/workflows/node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
fallbackNpm: '^11.3'
6666

6767
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
68-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
68+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
6969
with:
7070
node-version: ${{ steps.versions.outputs.nodeVersion }}
7171

.github/workflows/npm-audit-fix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
fallbackNpm: '^11.3'
4949

5050
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
51-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
51+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
5252
with:
5353
node-version: ${{ steps.versions.outputs.nodeVersion }}
5454

@@ -69,9 +69,9 @@ jobs:
6969
7070
- name: Create Pull Request
7171
if: steps.checkout.outcome == 'success'
72-
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
72+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
7373
with:
74-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
74+
token: ${{ secrets.COMMAND_BOT_PAT }}
7575
commit-message: 'fix(deps): Fix npm audit'
7676
committer: GitHub <noreply@github.com>
7777
author: nextcloud-command <nextcloud-command@users.noreply.github.com>

0 commit comments

Comments
 (0)