Skip to content

Commit fdb27f5

Browse files
Merge pull request #31 from nextcloud/automated/update-workflows/default
chore: update workflows from templates
2 parents 6393097 + fa7d9d3 commit fdb27f5

File tree

5 files changed

+41
-26
lines changed

5 files changed

+41
-26
lines changed

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

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
58

69
name: Build and publish app release
710

@@ -29,7 +32,7 @@ jobs:
2932
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3033
3134
- name: Checkout
32-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
35+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3336
with:
3437
path: ${{ env.APP_NAME }}
3538

@@ -41,7 +44,7 @@ jobs:
4144
expression: "//info//dependencies//nextcloud/@min-version"
4245

4346
- name: Read package.json node and npm engines version
44-
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
47+
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
4548
id: versions
4649
# Continue if no package.json
4750
continue-on-error: true
@@ -53,14 +56,14 @@ jobs:
5356
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
5457
# Skip if no package.json
5558
if: ${{ steps.versions.outputs.nodeVersion }}
56-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
59+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
5760
with:
5861
node-version: ${{ steps.versions.outputs.nodeVersion }}
5962

6063
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
6164
# Skip if no package.json
6265
if: ${{ steps.versions.outputs.npmVersion }}
63-
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
66+
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
6467

6568
- name: Get php version
6669
id: php-versions
@@ -69,7 +72,7 @@ jobs:
6972
filename: ${{ env.APP_NAME }}/appinfo/info.xml
7073

7174
- name: Set up php ${{ steps.php-versions.outputs.php-min }}
72-
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
75+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
7376
with:
7477
php-version: ${{ steps.php-versions.outputs.php-min }}
7578
coverage: none
@@ -78,7 +81,7 @@ jobs:
7881

7982
- name: Check composer.json
8083
id: check_composer
81-
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
84+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
8285
with:
8386
files: "${{ env.APP_NAME }}/composer.json"
8487

@@ -96,11 +99,11 @@ jobs:
9699
run: |
97100
cd ${{ env.APP_NAME }}
98101
npm ci
99-
npm run build
102+
npm run build --if-present
100103
101104
- name: Check Krankerl config
102105
id: krankerl
103-
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
106+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
104107
with:
105108
files: ${{ env.APP_NAME }}/krankerl.toml
106109

@@ -126,12 +129,12 @@ jobs:
126129
continue-on-error: true
127130
id: server-checkout
128131
run: |
129-
NCVERSION=${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
132+
NCVERSION='${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}'
130133
wget --quiet https://download.nextcloud.com/server/releases/latest-$NCVERSION.zip
131134
unzip latest-$NCVERSION.zip
132135
133136
- name: Checkout server master fallback
134-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
137+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
135138
if: ${{ steps.server-checkout.outcome != 'success' }}
136139
with:
137140
submodules: true
@@ -145,7 +148,7 @@ jobs:
145148
tar -xvf ${{ env.APP_NAME }}.tar.gz
146149
cd ../../../
147150
# Setting up keys
148-
echo "${{ secrets.APP_PRIVATE_KEY }}" > ${{ env.APP_NAME }}.key
151+
echo '${{ secrets.APP_PRIVATE_KEY }}' > ${{ env.APP_NAME }}.key
149152
wget --quiet "https://github.com/nextcloud/app-certificate-requests/raw/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt"
150153
# Signing
151154
php nextcloud/occ integrity:sign-app --privateKey=../${{ env.APP_NAME }}.key --certificate=../${{ env.APP_NAME }}.crt --path=../${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }}

.github/workflows/lint-info-xml.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
58

69
name: Lint info.xml
710

@@ -21,7 +24,7 @@ jobs:
2124
name: info.xml lint
2225
steps:
2326
- name: Checkout
24-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
27+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2528

2629
- name: Download schema
2730
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd

.github/workflows/lint-php.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
58

69
name: Lint php
710

@@ -21,7 +24,7 @@ jobs:
2124
php-versions: ${{ steps.versions.outputs.php-versions }}
2225
steps:
2326
- name: Checkout app
24-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
27+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2528
- name: Get version matrix
2629
id: versions
2730
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.0.0
@@ -37,10 +40,10 @@ jobs:
3740

3841
steps:
3942
- name: Checkout
40-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
43+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4144

4245
- name: Set up php ${{ matrix.php-versions }}
43-
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
46+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
4447
with:
4548
php-version: ${{ matrix.php-versions }}
4649
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/psalm-matrix.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
58

69
name: Static analysis
710

@@ -18,7 +21,7 @@ jobs:
1821
ocp-matrix: ${{ steps.versions.outputs.ocp-matrix }}
1922
steps:
2023
- name: Checkout app
21-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2225
- name: Get version matrix
2326
id: versions
2427
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
@@ -34,10 +37,10 @@ jobs:
3437
name: static-psalm-analysis ${{ matrix.ocp-version }}
3538
steps:
3639
- name: Checkout
37-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
40+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3841

3942
- name: Set up php${{ matrix.php-versions }}
40-
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
43+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
4144
with:
4245
php-version: ${{ matrix.php-versions }}
4346
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
@@ -50,7 +53,7 @@ jobs:
5053
run: composer i
5154

5255
- name: Install dependencies
53-
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} --ignore-platform-reqs --with-dependencies
56+
run: composer require --dev 'nextcloud/ocp:${{ matrix.ocp-version }}' --ignore-platform-reqs --with-dependencies
5457

5558
- name: Run coding standards check
5659
run: composer run psalm

.github/workflows/update-nextcloud-ocp-matrix.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
58

69
name: Update nextcloud/ocp
710

@@ -18,18 +21,18 @@ jobs:
1821
fail-fast: false
1922
matrix:
2023
branches: ['master']
21-
target: ['stable26']
24+
target: ['stable28']
2225

2326
name: update-nextcloud-ocp-${{ matrix.branches }}
2427

2528
steps:
26-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
29+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2730
with:
2831
ref: ${{ matrix.branches }}
2932
submodules: true
3033

3134
- name: Set up php8.2
32-
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
35+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
3336
with:
3437
php-version: 8.2
3538
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@@ -78,15 +81,15 @@ jobs:
7881
continue-on-error: true
7982

8083
- name: Create Pull Request
81-
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1
84+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
8285
with:
8386
token: ${{ secrets.COMMAND_BOT_PAT }}
84-
commit-message: "chore(dev-deps): Bump nextcloud/ocp package"
87+
commit-message: 'chore(dev-deps): Bump nextcloud/ocp package'
8588
committer: GitHub <noreply@github.com>
8689
author: nextcloud-command <nextcloud-command@users.noreply.github.com>
8790
signoff: true
88-
branch: automated/noid/${{ matrix.branches }}-update-nextcloud-ocp
89-
title: "[${{ matrix.branches }}] Update nextcloud/ocp dependency"
91+
branch: 'automated/noid/${{ matrix.branches }}-update-nextcloud-ocp'
92+
title: '[${{ matrix.branches }}] Update nextcloud/ocp dependency'
9093
body: |
9194
Auto-generated update of [nextcloud/ocp](https://github.com/nextcloud-deps/ocp/) dependency
9295
labels: |

0 commit comments

Comments
 (0)