2727 - uses : cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
2828 with :
2929 name : notify-push
30- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
30+ authToken : " ${{ secrets.CACHIX_AUTH_TOKEN }}"
3131
3232 - name : Check actor permission
3333 uses : skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
4141 echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
4242
4343 - name : Checkout
44- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
44+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
4545 with :
4646 persist-credentials : false
4747 path : ${{ env.APP_NAME }}
@@ -72,15 +72,16 @@ jobs:
7272 continue-on-error : true
7373 with :
7474 path : ${{ env.APP_NAME }}
75- fallbackNode : ' ^20 '
76- fallbackNpm : ' ^10 '
75+ fallbackNode : " ^24 "
76+ fallbackNpm : " ^11.3 "
7777
7878 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
7979 # Skip if no package.json
8080 if : ${{ steps.versions.outputs.nodeVersion }}
81- uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 .4.0
81+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 .4.0
8282 with :
8383 node-version : ${{ steps.versions.outputs.nodeVersion }}
84+ package-manager-cache : false
8485
8586 - name : Set up npm ${{ steps.versions.outputs.npmVersion }}
8687 # Skip if no package.json
@@ -89,12 +90,12 @@ jobs:
8990
9091 - name : Get php version
9192 id : php-versions
92- uses : icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
93+ uses : icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
9394 with :
9495 filename : ${{ env.APP_NAME }}/appinfo/info.xml
9596
9697 - name : Set up php ${{ steps.php-versions.outputs.php-min }}
97- uses : shivammathur/setup-php@ccf2c627fe61b1b4d924adfcbd19d661a18133a0 # v2.35 .2
98+ uses : shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37 .2
9899 with :
99100 php-version : ${{ steps.php-versions.outputs.php-min }}
100101 coverage : none
@@ -103,15 +104,17 @@ jobs:
103104
104105 - name : Check composer.json
105106 id : check_composer
106- uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0 .0
107+ uses : andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1 .0
107108 with :
108109 files : " ${{ env.APP_NAME }}/composer.json"
109110
110111 - name : Install composer dependencies
111112 if : steps.check_composer.outputs.files_exists == 'true'
112- run : |
113- cd ${{ env.APP_NAME }}
114- composer install --no-dev
113+ uses : ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
114+ with :
115+ composer-options : " --no-dev"
116+ working-directory : ${{ env.APP_NAME }}
117+ ignore-cache : " yes"
115118
116119 - name : Build ${{ env.APP_NAME }}
117120 # Skip if no package.json
@@ -125,7 +128,7 @@ jobs:
125128
126129 - name : Check Krankerl config
127130 id : krankerl
128- uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0 .0
131+ uses : andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1 .0
129132 with :
130133 files : ${{ env.APP_NAME }}/krankerl.toml
131134
@@ -147,17 +150,24 @@ jobs:
147150 cd ${{ env.APP_NAME }}
148151 make appstore
149152
150- - name : Checkout server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
151- continue-on-error : true
152- id : server-checkout
153+ - name : Check server download link for ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
153154 run : |
154155 NCVERSION='${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}'
155- wget --quiet https://download.nextcloud.com/server/releases/latest-$NCVERSION.zip
156- unzip latest-$NCVERSION.zip
156+ DOWNLOAD_URL=$(curl -s "https://updates.nextcloud.com/updater_server/latest?channel=beta&version=$NCVERSION" | jq -r '.downloads.zip[0]')
157+ echo "DOWNLOAD_URL=$DOWNLOAD_URL" >> $GITHUB_ENV
158+
159+ - name : Download server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
160+ continue-on-error : true
161+ id : server-download
162+ if : ${{ env.DOWNLOAD_URL != 'null' }}
163+ run : |
164+ echo "Downloading release tarball from $DOWNLOAD_URL"
165+ wget $DOWNLOAD_URL -O nextcloud.zip
166+ unzip nextcloud.zip
157167
158168 - name : Checkout server master fallback
159- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
160- if : ${{ steps.server-checkout .outcome != 'success' }}
169+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
170+ if : ${{ steps.server-download .outcome != 'success' }}
161171 with :
162172 persist-credentials : false
163173 submodules : true
@@ -180,7 +190,7 @@ jobs:
180190 tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
181191
182192 - name : Attach tarball to github release
183- uses : svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2 .11.2
193+ uses : svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2 .11.5
184194 id : attach_to_release
185195 with :
186196 repo_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments