3535 echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3636
3737 - name : Checkout
38- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
38+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
3939 with :
4040 persist-credentials : false
4141 path : ${{ env.APP_NAME }}
@@ -65,15 +65,16 @@ jobs:
6565 continue-on-error : true
6666 with :
6767 path : ${{ env.APP_NAME }}
68- fallbackNode : ' ^20 '
69- fallbackNpm : ' ^10 '
68+ fallbackNode : ' ^24 '
69+ fallbackNpm : ' ^11.3 '
7070
7171 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
7272 # Skip if no package.json
7373 if : ${{ steps.versions.outputs.nodeVersion }}
74- uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 .4.0
74+ 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
@@ -82,12 +83,12 @@ jobs:
8283
8384 - name : Get php version
8485 id : php-versions
85- uses : icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
86+ uses : icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
8687 with :
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@20529878ed81ef8e78ddf08b480401e6101a850f # v2.35.3
91+ uses : shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
9192 with :
9293 php-version : ${{ steps.php-versions.outputs.php-min }}
9394 coverage : none
9697
9798 - name : Check composer.json
9899 id : check_composer
99- uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0 .0
100+ uses : andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1 .0
100101 with :
101102 files : " ${{ env.APP_NAME }}/composer.json"
102103
@@ -118,7 +119,7 @@ jobs:
118119
119120 - name : Check Krankerl config
120121 id : krankerl
121- uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0 .0
122+ uses : andstor/file-existence-action@558493d6c74bf472d87c84eab196434afc2fa029 # v3.1 .0
122123 with :
123124 files : ${{ env.APP_NAME }}/krankerl.toml
124125
@@ -140,23 +141,31 @@ jobs:
140141 cd ${{ env.APP_NAME }}
141142 make appstore
142143
143- - name : Checkout server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
144- continue-on-error : true
145- id : server-checkout
144+ - name : Check server download link for ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
146145 run : |
147146 NCVERSION='${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}'
148- wget --quiet https://download.nextcloud.com/server/releases/latest-$NCVERSION.zip
149- unzip latest-$NCVERSION.zip
147+ DOWNLOAD_URL=$(curl -s "https://updates.nextcloud.com/updater_server/latest?channel=beta&version=$NCVERSION" | jq -r '.downloads.zip[0]')
148+ echo "DOWNLOAD_URL=$DOWNLOAD_URL" >> $GITHUB_ENV
149+
150+ - name : Download server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
151+ continue-on-error : true
152+ id : server-download
153+ if : ${{ env.DOWNLOAD_URL != 'null' }}
154+ run : |
155+ echo "Downloading release tarball from $DOWNLOAD_URL"
156+ wget $DOWNLOAD_URL -O nextcloud.zip
157+ unzip nextcloud.zip
150158
151159 - name : Checkout server master fallback
152- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
153- if : ${{ steps.server-checkout .outcome != 'success' }}
160+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
161+ if : ${{ steps.server-download .outcome != 'success' }}
154162 with :
155163 persist-credentials : false
156164 submodules : true
157165 repository : nextcloud/server
158166 path : nextcloud
159167
168+
160169 - name : Sign app
161170 run : |
162171 # Extracting release
@@ -173,7 +182,7 @@ jobs:
173182 tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
174183
175184 - name : Attach tarball to github release
176- uses : svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2 .11.2
185+ uses : svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2 .11.5
177186 id : attach_to_release
178187 with :
179188 repo_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments