Skip to content

Commit faebad6

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

14 files changed

Lines changed: 56 additions & 126 deletions

.github/actions-lock.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
22
# SPDX-License-Identifier: MIT
3-
e20c2aa019763dd8c01214150f203ec6 appstore-build-publish.yml
4-
7dd8d21d9dd013196cd4bdbf7c24db6f dependabot-approve-merge.yml
3+
9cbb4d651a9ac018f04b663ddd2c87bb appstore-build-publish.yml
4+
56cf6e8b165be4343be41f47c1e79a9c dependabot-approve-merge.yml
55
2581a67c5bcdcd570427e6d51db767d7 fixup.yml
66
80a58e5584612def0e751fcfb7669814 lint-info-xml.yml
7-
ccd8a55c60e35b84becb0f7005ce1286 lint-php-cs.yml
8-
5dcc3187a9460cb62a455235cbdb3562 lint-php.yml
9-
bdca1af74c27de9a9fc2f3c70aabdc8f phpunit-mariadb.yml
10-
5846b994639ccab0059bf23e141d389a phpunit-mysql.yml
11-
ec7d1084fbb3a6803dbabf3acdd17ac8 phpunit-oci.yml
12-
29b359a5b76e7ff8cd85af34b3bf36e3 phpunit-pgsql.yml
13-
182cc739d33a2441d3a9278a9bff55b4 phpunit-sqlite.yml
7+
a674b6e725bcbc1064f7b68c678a2df6 lint-php-cs.yml
8+
6078222f7c61540504fa9892729f4a04 lint-php.yml
9+
92289389e73c7df771df909f4bc5d8be phpunit-mariadb.yml
10+
1a3ce26e019f736c5f96c37675d8c530 phpunit-mysql.yml
11+
522d07fdeead55df5af751ef5e71b45b phpunit-oci.yml
12+
6862d78a56829d63a77c267be1099860 phpunit-pgsql.yml
13+
d17de282ccd37f12a5fd78d68a74df96 phpunit-sqlite.yml
1414
3c4a096b3b7dbaef0f8e5190ffe13518 pr-feedback.yml
15-
a6d8aa0050107ce4d8b6d166d25ca8aa psalm.yml
15+
9fe5efdf1113d7fe92ba1f54f1111c4f psalm.yml
1616
7db5b820f3750eebe988005a0bb2febd reuse.yml
17-
a4ad57688740c06ff327edaba69b2755 sync-workflow-templates.yml
18-
800d5b188aa885626cf4169fa2dfea9e update-nextcloud-ocp-approve-merge.yml
19-
90f22641445623fb227102f8d2d87cc0 update-nextcloud-ocp.yml
17+
9dc6b717be0006fc7974a50351686fd7 sync-workflow-templates.yml
18+
78bd5cbcc4b48cb9b0d1b0fbbb4403d7 update-nextcloud-ocp-approve-merge.yml
19+
94d83c701a5583dc4b36a5f471bb9e41 update-nextcloud-ocp.yml

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7575
with:
7676
node-version: ${{ steps.versions.outputs.nodeVersion }}
77+
package-manager-cache: false
7778

7879
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
7980
# Skip if no package.json
@@ -87,7 +88,7 @@ jobs:
8788
filename: ${{ env.APP_NAME }}/appinfo/info.xml
8889

8990
- name: Set up php ${{ steps.php-versions.outputs.php-min }}
90-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
91+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
9192
with:
9293
php-version: ${{ steps.php-versions.outputs.php-min }}
9394
coverage: none
@@ -181,7 +182,7 @@ jobs:
181182
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
182183
183184
- name: Attach tarball to github release
184-
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2.11.5
185+
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2.11.5
185186
id: attach_to_release
186187
with:
187188
repo_token: ${{ secrets.GITHUB_TOKEN }}

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if: github.event.pull_request.user.login == 'dependabot[bot]'
2828
runs-on: ubuntu-latest-low
2929
permissions:
30-
# for hmarr/auto-approve-action to approve PRs
30+
# for auto-approve step to work
3131
pull-requests: write
3232
# for alexwilson/enable-github-automerge-action to approve PRs
3333
contents: write
@@ -44,15 +44,22 @@ jobs:
4444
with:
4545
repo-token: ${{ secrets.GITHUB_TOKEN }}
4646

47-
# GitHub actions bot approve
48-
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
49-
if: startsWith(steps.branchname.outputs.branch, 'dependabot/')
47+
- name: Dependabot metadata
48+
id: metadata
49+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
5050
with:
5151
github-token: ${{ secrets.GITHUB_TOKEN }}
5252

53+
- name: GitHub actions bot approve
54+
if: startsWith(steps.branchname.outputs.branch, 'dependabot/')
55+
run: gh pr review --approve "$PR_URL"
56+
env:
57+
PR_URL: ${{ github.event.pull_request.html_url }}
58+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
5360
# Enable GitHub auto merge
5461
- name: Auto merge
55-
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # v2.0.0
56-
if: startsWith(steps.branchname.outputs.branch, 'dependabot/') && (github.event.pull_request.action == 'opened' || github.event.pull_request.action == 'reopened')
62+
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # 2.0.0
63+
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')
5764
with:
5865
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 # v2.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 # v2.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/phpunit-mariadb.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,32 +106,16 @@ jobs:
106106
persist-credentials: false
107107
path: apps/${{ env.APP_NAME }}
108108

109-
- name: Checkout app (richdocuments)
110-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
111-
with:
112-
persist-credentials: false
113-
path: apps/richdocuments
114-
repository: nextcloud/richdocuments
115-
ref: ${{ matrix.richdocuments-versions }}
116-
117-
- name: Checkout app (groupfolders)
118-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
119-
with:
120-
persist-credentials: false
121-
path: apps/groupfolders
122-
repository: nextcloud/groupfolders
123-
ref: ${{ matrix.groupfolders-versions }}
124-
125109
- name: Set up php ${{ matrix.php-versions }}
126-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
110+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
127111
with:
128112
php-version: ${{ matrix.php-versions }}
129113
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
130-
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
114+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
131115
coverage: none
132116
ini-file: development
133117
# Temporary workaround for missing pcntl_* in PHP 8.3
134-
ini-values: apc.enable_cli=on, disable_functions=
118+
ini-values: disable_functions=
135119
env:
136120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137121

.github/workflows/phpunit-mysql.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -102,32 +102,16 @@ jobs:
102102
persist-credentials: false
103103
path: apps/${{ env.APP_NAME }}
104104

105-
- name: Checkout app (richdocuments)
106-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
107-
with:
108-
persist-credentials: false
109-
path: apps/richdocuments
110-
repository: nextcloud/richdocuments
111-
ref: ${{ matrix.richdocuments-versions }}
112-
113-
- name: Checkout app (groupfolders)
114-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
115-
with:
116-
persist-credentials: false
117-
path: apps/groupfolders
118-
repository: nextcloud/groupfolders
119-
ref: ${{ matrix.groupfolders-versions }}
120-
121105
- name: Set up php ${{ matrix.php-versions }}
122-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
106+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
123107
with:
124108
php-version: ${{ matrix.php-versions }}
125109
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
126-
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
110+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
127111
coverage: none
128112
ini-file: development
129113
# Temporary workaround for missing pcntl_* in PHP 8.3
130-
ini-values: apc.enable_cli=on, disable_functions=
114+
ini-values: disable_functions=
131115
env:
132116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133117

.github/workflows/phpunit-oci.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -116,32 +116,16 @@ jobs:
116116
persist-credentials: false
117117
path: apps/${{ env.APP_NAME }}
118118

119-
- name: Checkout app (richdocuments)
120-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
121-
with:
122-
persist-credentials: false
123-
path: apps/richdocuments
124-
repository: nextcloud/richdocuments
125-
ref: ${{ matrix.richdocuments-versions }}
126-
127-
- name: Checkout app (groupfolders)
128-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
129-
with:
130-
persist-credentials: false
131-
path: apps/groupfolders
132-
repository: nextcloud/groupfolders
133-
ref: ${{ matrix.groupfolders-versions }}
134-
135119
- name: Set up php ${{ matrix.php-versions }}
136-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
120+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
137121
with:
138122
php-version: ${{ matrix.php-versions }}
139123
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
140-
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, oci8
124+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, oci8
141125
coverage: none
142126
ini-file: development
143127
# Temporary workaround for missing pcntl_* in PHP 8.3
144-
ini-values: apc.enable_cli=on, disable_functions=
128+
ini-values: disable_functions=
145129
env:
146130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147131

.github/workflows/phpunit-pgsql.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,32 +107,16 @@ jobs:
107107
persist-credentials: false
108108
path: apps/${{ env.APP_NAME }}
109109

110-
- name: Checkout app (richdocuments)
111-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
112-
with:
113-
persist-credentials: false
114-
path: apps/richdocuments
115-
repository: nextcloud/richdocuments
116-
ref: ${{ matrix.richdocuments-versions }}
117-
118-
- name: Checkout app (groupfolders)
119-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
120-
with:
121-
persist-credentials: false
122-
path: apps/groupfolders
123-
repository: nextcloud/groupfolders
124-
ref: ${{ matrix.groupfolders-versions }}
125-
126110
- name: Set up php ${{ matrix.php-versions }}
127-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
111+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
128112
with:
129113
php-version: ${{ matrix.php-versions }}
130114
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
131-
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
115+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
132116
coverage: none
133117
ini-file: development
134118
# Temporary workaround for missing pcntl_* in PHP 8.3
135-
ini-values: apc.enable_cli=on, disable_functions=
119+
ini-values: disable_functions=
136120
env:
137121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138122

.github/workflows/phpunit-sqlite.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -96,32 +96,16 @@ jobs:
9696
persist-credentials: false
9797
path: apps/${{ env.APP_NAME }}
9898

99-
- name: Checkout app (richdocuments)
100-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101-
with:
102-
persist-credentials: false
103-
path: apps/richdocuments
104-
repository: nextcloud/richdocuments
105-
ref: ${{ matrix.richdocuments-versions }}
106-
107-
- name: Checkout app (groupfolders)
108-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
109-
with:
110-
persist-credentials: false
111-
path: apps/groupfolders
112-
repository: nextcloud/groupfolders
113-
ref: ${{ matrix.groupfolders-versions }}
114-
11599
- name: Set up php ${{ matrix.php-versions }}
116-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
100+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
117101
with:
118102
php-version: ${{ matrix.php-versions }}
119103
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
120-
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
104+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
121105
coverage: none
122106
ini-file: development
123107
# Temporary workaround for missing pcntl_* in PHP 8.3
124-
ini-values: apc.enable_cli=on, disable_functions=
108+
ini-values: disable_functions=
125109
env:
126110
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127111

0 commit comments

Comments
 (0)