99 release :
1010 types : [published]
1111
12- env :
13- PHP_VERSION : 8.1
14-
1512jobs :
1613 build_and_publish :
1714 runs-on : ubuntu-latest
1815
19- # # Only allowed to be run on nextcloud-releases repositories
20- # if: ${{ github.repository_owner == 'nextcloud-releases' }}
16+ # Only allowed to be run on nextcloud-releases repositories
17+ if : ${{ github.repository_owner == 'nextcloud-releases' }}
2118
2219 steps :
2320 - name : Check actor permission
24- uses : skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2.1
21+ uses : skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
2522 with :
2623 require : write
2724
3229 echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3330
3431 - name : Checkout
35- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
32+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3633 with :
3734 path : ${{ env.APP_NAME }}
3835
@@ -44,19 +41,19 @@ jobs:
4441 expression : " //info//dependencies//nextcloud/@min-version"
4542
4643 - name : Read package.json node and npm engines version
47- uses : skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1 .2
44+ uses : skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2 .2
4845 id : versions
4946 # Continue if no package.json
5047 continue-on-error : true
5148 with :
5249 path : ${{ env.APP_NAME }}
53- fallbackNode : " ^16 "
54- fallbackNpm : " ^7 "
50+ fallbackNode : ' ^20 '
51+ fallbackNpm : ' ^10 '
5552
5653 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
5754 # Skip if no package.json
5855 if : ${{ steps.versions.outputs.nodeVersion }}
59- uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3
56+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
6057 with :
6158 node-version : ${{ steps.versions.outputs.nodeVersion }}
6259
@@ -65,17 +62,23 @@ jobs:
6562 if : ${{ steps.versions.outputs.npmVersion }}
6663 run : npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
6764
68- - name : Set up php ${{ env.PHP_VERSION }}
69- uses : shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
65+ - name : Get php version
66+ id : php-versions
67+ uses : icewind1991/nextcloud-version-matrix@7d433286e92318f51ed0537b6c77374759e12f46 # v1.3.0
7068 with :
71- php-version : ${{ env.PHP_VERSION }}
69+ filename : ${{ env.APP_NAME }}/appinfo/info.xml
70+
71+ - name : Set up php ${{ steps.php-versions.outputs.php-min }}
72+ uses : shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
73+ with :
74+ php-version : ${{ steps.php-versions.outputs.php-min }}
7275 coverage : none
7376 env :
7477 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7578
7679 - name : Check composer.json
7780 id : check_composer
78- uses : andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
81+ uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
7982 with :
8083 files : " ${{ env.APP_NAME }}/composer.json"
8184
@@ -88,14 +91,16 @@ jobs:
8891 - name : Build ${{ env.APP_NAME }}
8992 # Skip if no package.json
9093 if : ${{ steps.versions.outputs.nodeVersion }}
94+ env :
95+ CYPRESS_INSTALL_BINARY : 0
9196 run : |
9297 cd ${{ env.APP_NAME }}
9398 npm ci
9499 npm run build
95100
96101 - name : Check Krankerl config
97102 id : krankerl
98- uses : andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
103+ uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
99104 with :
100105 files : ${{ env.APP_NAME }}/krankerl.toml
101106
@@ -126,7 +131,7 @@ jobs:
126131 unzip latest-$NCVERSION.zip
127132
128133 - name : Checkout server master fallback
129- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
134+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
130135 if : ${{ steps.server-checkout.outcome != 'success' }}
131136 with :
132137 submodules : true
@@ -149,7 +154,7 @@ jobs:
149154 tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
150155
151156 - name : Attach tarball to github release
152- uses : svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575 # v2
157+ uses : svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df # v2
153158 id : attach_to_release
154159 with :
155160 repo_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments