Skip to content

Commit 3d3a99f

Browse files
committed
chore: update workflows from templates
Signed-off-by: skjnldsv <[email protected]>
1 parent 8e0f0ea commit 3d3a99f

File tree

8 files changed

+55
-34
lines changed

8 files changed

+55
-34
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
@@ -60,7 +63,7 @@ jobs:
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@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
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

@@ -92,15 +95,15 @@ jobs:
9295
# Skip if no package.json
9396
if: ${{ steps.versions.outputs.nodeVersion }}
9497
env:
95-
CYPRESS_INSTALL_BINARY: 0
98+
NODE_ENV: production
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/fixup.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: Block fixup and squash commits
710

@@ -28,6 +31,6 @@ jobs:
2831

2932
steps:
3033
- name: Run check
31-
uses: skjnldsv/block-fixup-merge-action@42d26e1b536ce61e5cf467d65fb76caf4aa85acf # v1
34+
uses: skjnldsv/block-fixup-merge-action@c138ea99e45e186567b64cf065ce90f7158c236a # v2
3235
with:
3336
repo-token: ${{ secrets.GITHUB_TOKEN }}

.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-cs.yml

Lines changed: 5 additions & 2 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-cs
710

@@ -22,14 +25,14 @@ jobs:
2225

2326
steps:
2427
- name: Checkout
25-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2629

2730
- name: Get php version
2831
id: versions
2932
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
3033

3134
- name: Set up php${{ steps.versions.outputs.php-available }}
32-
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
35+
uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
3336
with:
3437
php-version: ${{ steps.versions.outputs.php-available }}
3538
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: 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@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
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/pr-feedback.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
feedback-message: |
3737
Hello there,
38-
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
38+
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
3939
4040
We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.
4141
@@ -45,6 +45,6 @@ jobs:
4545
4646
(If you believe you should not receive this message, you can add yourself to the [blocklist](https://github.com/nextcloud/.github/blob/master/non-community-usernames.txt).)
4747
days-before-feedback: 14
48-
start-date: "2024-04-30"
49-
exempt-authors: "${{ steps.blocklist.outputs.blocklist }},${{ steps.scrape.outputs.users }},nextcloud-command,nextcloud-android-bot"
48+
start-date: '2024-04-30'
49+
exempt-authors: '${{ steps.blocklist.outputs.blocklist }},${{ steps.scrape.outputs.users }},nextcloud-command,nextcloud-android-bot'
5050
exempt-bots: true

.github/workflows/psalm.yml

Lines changed: 5 additions & 2 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,14 +21,14 @@ jobs:
1821
name: static-psalm-analysis
1922
steps:
2023
- name: Checkout
21-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2225

2326
- name: Get php version
2427
id: versions
2528
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
2629

2730
- name: Set up php${{ steps.versions.outputs.php-available }}
28-
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
31+
uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
2932
with:
3033
php-version: ${{ steps.versions.outputs.php-available }}
3134
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/update-nextcloud-ocp.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: 2022-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
58

69
name: Update nextcloud/ocp
710

@@ -23,15 +26,15 @@ jobs:
2326

2427
steps:
2528
- id: checkout
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
continue-on-error: true
3134

3235
- name: Set up php8.2
3336
if: steps.checkout.outcome == 'success'
34-
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
37+
uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
3538
with:
3639
php-version: 8.2
3740
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@@ -54,15 +57,15 @@ jobs:
5457
- name: Composer update nextcloud/ocp
5558
id: update_branch
5659
if: ${{ steps.checkout.outcome == 'success' && matrix.branches != 'main' }}
57-
run: composer require --dev nextcloud/ocp:dev-${{ matrix.branches }}
60+
run: composer require --dev 'nextcloud/ocp:dev-${{ matrix.branches }}'
5861

5962
- name: Raise on issue on failure
6063
uses: dacbd/create-issue-action@cdb57ab6ff8862aa09fee2be6ba77a59581921c2 # v2.0.0
6164
if: ${{ steps.checkout.outcome == 'success' && failure() && steps.update_branch.conclusion == 'failure' }}
6265
with:
6366
token: ${{ secrets.GITHUB_TOKEN }}
64-
title: Failed to update nextcloud/ocp package on branch ${{ matrix.branches }}
65-
body: Please check the output of the GitHub action and manually resolve the issues<br>${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}<br>${{ steps.codeowners.outputs.codeowners }}
67+
title: 'Failed to update nextcloud/ocp package on branch ${{ matrix.branches }}'
68+
body: 'Please check the output of the GitHub action and manually resolve the issues<br>${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}<br>${{ steps.codeowners.outputs.codeowners }}'
6669

6770
- name: Composer update nextcloud/ocp
6871
id: update_main
@@ -74,8 +77,8 @@ jobs:
7477
if: ${{ steps.checkout.outcome == 'success' && failure() && steps.update_main.conclusion == 'failure' }}
7578
with:
7679
token: ${{ secrets.GITHUB_TOKEN }}
77-
title: Failed to update nextcloud/ocp package on branch ${{ matrix.branches }}
78-
body: Please check the output of the GitHub action and manually resolve the issues<br>${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}<br>${{ steps.codeowners.outputs.codeowners }}
80+
title: 'Failed to update nextcloud/ocp package on branch ${{ matrix.branches }}'
81+
body: 'Please check the output of the GitHub action and manually resolve the issues<br>${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}<br>${{ steps.codeowners.outputs.codeowners }}'
7982

8083
- name: Reset checkout 3rdparty
8184
if: steps.checkout.outcome == 'success'
@@ -100,15 +103,15 @@ jobs:
100103

101104
- name: Create Pull Request
102105
if: steps.checkout.outcome == 'success'
103-
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1
106+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
104107
with:
105108
token: ${{ secrets.COMMAND_BOT_PAT }}
106-
commit-message: "chore(dev-deps): Bump nextcloud/ocp package"
109+
commit-message: 'chore(dev-deps): Bump nextcloud/ocp package'
107110
committer: GitHub <[email protected]>
108111
author: nextcloud-command <[email protected]>
109112
signoff: true
110-
branch: automated/noid/${{ matrix.branches }}-update-nextcloud-ocp
111-
title: "[${{ matrix.branches }}] Update nextcloud/ocp dependency"
113+
branch: 'automated/noid/${{ matrix.branches }}-update-nextcloud-ocp'
114+
title: '[${{ matrix.branches }}] Update nextcloud/ocp dependency'
112115
body: |
113116
Auto-generated update of [nextcloud/ocp](https://github.com/nextcloud-deps/ocp/) dependency
114117
labels: |

0 commit comments

Comments
 (0)