Skip to content

Commit 439d602

Browse files
ci(actions): Update workflow templates from organization template repository
Signed-off-by: GitHub <noreply@github.com>
1 parent 2f4f8fb commit 439d602

15 files changed

Lines changed: 41 additions & 56 deletions

.github/actions-lock.txt

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
22
# SPDX-License-Identifier: MIT
3-
43851fd8e1125e1083be704056616c9a appstore-build-publish.yml
3+
9cbb4d651a9ac018f04b663ddd2c87bb appstore-build-publish.yml
44
d42c24e161cb75a6394cb8bd347b9467 block-unconventional-commits.yml
55
779a27fda482f862faafbc191753d32a command-openapi.yml
6-
cbffe424c47647a2e375f96f25b67af9 dependabot-approve-merge.yml
6+
003108ea0f5c12e1db591cd4613304d8 dependabot-approve-merge.yml
77
2581a67c5bcdcd570427e6d51db767d7 fixup.yml
88
7bcfba381bfb7c28d9ef6a7d55ac937b lint-eslint.yml
99
80a58e5584612def0e751fcfb7669814 lint-info-xml.yml
10-
058024e4560ae1f18f6e4be9ecc0dacb lint-php-cs.yml
11-
d86aa09feb6ce2ad244926aff7adcb36 lint-php.yml
10+
a674b6e725bcbc1064f7b68c678a2df6 lint-php-cs.yml
11+
6078222f7c61540504fa9892729f4a04 lint-php.yml
1212
bd5b5245dc07b5779031e13817663a3e lint-stylelint.yml
13-
40fb68581bd8252e6a7ee8be6f1d99b7 node-test.yml
13+
0950e85101c44f00cd67b98f99246835 node-test.yml
1414
03759c9dc0fa748cb927b9f9cadf2925 node.yml
15-
887e74a10fb81844981217e649551793 openapi.yml
16-
6da74afd101a7c60f4db81b124b1c977 phpunit-mariadb.yml
17-
efac00595fcf8c91902a40467bb8e58a phpunit-mysql.yml
18-
ea1ad2b41d5c8730af03c2923fd0d90d phpunit-oci.yml
19-
5f7de35e496afb4f1206fe18017d6320 phpunit-pgsql.yml
20-
10d907363827d671d37831b78c0a1137 phpunit-sqlite.yml
15+
372b684975a822d0d1298892177ca7a9 openapi.yml
16+
92289389e73c7df771df909f4bc5d8be phpunit-mariadb.yml
17+
1a3ce26e019f736c5f96c37675d8c530 phpunit-mysql.yml
18+
522d07fdeead55df5af751ef5e71b45b phpunit-oci.yml
19+
6862d78a56829d63a77c267be1099860 phpunit-pgsql.yml
20+
d17de282ccd37f12a5fd78d68a74df96 phpunit-sqlite.yml
2121
3c4a096b3b7dbaef0f8e5190ffe13518 pr-feedback.yml
22-
a965b7d4820a97cc232a24f6caf90d95 psalm.yml
22+
9fe5efdf1113d7fe92ba1f54f1111c4f psalm.yml
2323
7db5b820f3750eebe988005a0bb2febd reuse.yml
24-
78bd5cbcc4b48cb9b0d1b0fbbb4403d7 update-nextcloud-ocp-approve-merge.yml
25-
c62537b3800cce229cae328bd206a3d4 update-nextcloud-ocp.yml
24+
a3440826636c0fd7c2d20b1de50363da update-nextcloud-ocp-approve-merge.yml
25+
94d83c701a5583dc4b36a5f471bb9e41 update-nextcloud-ocp.yml
2626
22604c31b526de270a080eb19967a638 update-stable-titles.yml
2727
082385f85afa5bd2c42664b2ca2d6707 lint-typescript.yml
2828
9dc6b717be0006fc7974a50351686fd7 sync-workflow-templates.yml
29+
92a9def3f7980550ca63038403f43182 npm-build.yml

.github/workflows/appstore-build-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
filename: ${{ env.APP_NAME }}/appinfo/info.xml
8989

9090
- name: Set up php ${{ steps.php-versions.outputs.php-min }}
91-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
91+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
9292
with:
9393
php-version: ${{ steps.php-versions.outputs.php-min }}
9494
coverage: none

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

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,43 +42,27 @@ jobs:
4242
echo 'Can not approve PRs from forks'
4343
exit 1
4444
45+
- uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
46+
id: branchname
47+
with:
48+
repo-token: ${{ secrets.GITHUB_TOKEN }}
49+
4550
- name: Dependabot metadata
46-
if: github.event.pull_request.user.login == 'dependabot[bot]'
4751
id: metadata
48-
uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 # v3.0.0
52+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
4953
with:
5054
github-token: ${{ secrets.GITHUB_TOKEN }}
5155

52-
- name: Check allowed dependency update
53-
if: github.event.pull_request.user.login == 'dependabot[bot]'
54-
id: validate
56+
- name: GitHub actions bot approve
57+
if: startsWith(steps.branchname.outputs.branch, 'dependabot/')
58+
run: gh pr review --approve "$PR_URL"
5559
env:
56-
IGNORE_PATTERN: ${{ env.IGNORE_PATTERN }}
57-
DEPENDENCY_NAMES: ${{ steps.metadata.outputs.dependency-names }}
58-
run: |
59-
if [[ -z ${IGNORE_PATTERN} ]]; then
60-
echo "ignore=false" >> "$GITHUB_OUTPUT"
61-
elif [[ -z ${DEPENDENCY_NAMES} ]]; then
62-
echo "ignore=false" >> "$GITHUB_OUTPUT"
63-
elif [[ ${DEPENDENCY_NAMES} =~ ${IGNORE_PATTERN} ]]; then
64-
echo "ignore=true" >> "$GITHUB_OUTPUT"
65-
fi
66-
67-
# GitHub actions bot approve
68-
- name: Auto approve
69-
id: auto_approve
70-
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
71-
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]'
72-
&& steps.validate.outputs.ignore != 'true'
73-
&& ((fromJSON(env.ALLOW_MINOR) && steps.metadata.outputs.update-type == 'version-update:semver-minor')
74-
|| steps.metadata.outputs.update-type == 'version-update:semver-patch')
75-
}}
76-
with:
77-
github-token: ${{ secrets.GITHUB_TOKEN }}
60+
PR_URL: ${{ github.event.pull_request.html_url }}
61+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7862

7963
# Enable GitHub auto merge
8064
- name: Auto merge
81-
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # 2.0.0
82-
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && steps.auto_approve.conclusion == 'success' }}
65+
uses: alexwilson/enable-github-automerge-action@2c32e18a76e0726ffe7a573bfff2d42a20885126 # 3.0.0
66+
if: startsWith(steps.branchname.outputs.branch, 'dependabot/') && (github.event.action == 'opened' || github.event.action == 'reopened') && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor')
8367
with:
8468
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-php-cs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
3535

3636
- name: Set up php${{ steps.versions.outputs.php-min }}
37-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
37+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
3838
with:
3939
php-version: ${{ steps.versions.outputs.php-min }}
4040
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite

.github/workflows/lint-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
persist-credentials: false
5050

5151
- name: Set up php ${{ matrix.php-versions }}
52-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
52+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
5353
with:
5454
php-version: ${{ matrix.php-versions }}
5555
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite

.github/workflows/node-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
run: npm run test --if-present
9292

9393
- name: Collect coverage
94-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
94+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
9595
with:
9696
files: ./coverage/lcov.info
9797

.github/workflows/openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
3636

3737
- name: Set up php
38-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
38+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
3939
with:
4040
php-version: ${{ steps.php_versions.outputs.php-available }}
4141
extensions: xml

.github/workflows/phpunit-mariadb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
path: apps/${{ env.APP_NAME }}
106106

107107
- name: Set up php ${{ matrix.php-versions }}
108-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
108+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
109109
with:
110110
php-version: ${{ matrix.php-versions }}
111111
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-mysql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
path: apps/${{ env.APP_NAME }}
104104

105105
- name: Set up php ${{ matrix.php-versions }}
106-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
106+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
107107
with:
108108
php-version: ${{ matrix.php-versions }}
109109
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-oci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
path: apps/${{ env.APP_NAME }}
116116

117117
- name: Set up php ${{ matrix.php-versions }}
118-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
118+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
119119
with:
120120
php-version: ${{ matrix.php-versions }}
121121
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

0 commit comments

Comments
 (0)