|
35 | 35 | echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV |
36 | 36 |
|
37 | 37 | - name: Checkout |
38 | | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 38 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
39 | 39 | with: |
40 | 40 | persist-credentials: false |
41 | 41 | path: ${{ env.APP_NAME }} |
@@ -65,13 +65,13 @@ jobs: |
65 | 65 | continue-on-error: true |
66 | 66 | with: |
67 | 67 | path: ${{ env.APP_NAME }} |
68 | | - fallbackNode: '^20' |
69 | | - fallbackNpm: '^10' |
| 68 | + fallbackNode: '^24' |
| 69 | + fallbackNpm: '^11.3' |
70 | 70 |
|
71 | 71 | - name: Set up node ${{ steps.versions.outputs.nodeVersion }} |
72 | 72 | # Skip if no package.json |
73 | 73 | if: ${{ steps.versions.outputs.nodeVersion }} |
74 | | - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 |
| 74 | + uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 |
75 | 75 | with: |
76 | 76 | node-version: ${{ steps.versions.outputs.nodeVersion }} |
77 | 77 |
|
@@ -140,23 +140,31 @@ jobs: |
140 | 140 | cd ${{ env.APP_NAME }} |
141 | 141 | make appstore |
142 | 142 |
|
143 | | - - name: Checkout server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }} |
144 | | - continue-on-error: true |
145 | | - id: server-checkout |
| 143 | + - name: Check server download link for ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }} |
146 | 144 | run: | |
147 | 145 | 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 |
| 146 | + DOWNLOAD_URL=$(curl -s "https://updates.nextcloud.com/updater_server/latest?channel=beta&version=$NCVERSION" | jq -r '.downloads.zip[0]') |
| 147 | + echo "DOWNLOAD_URL=$DOWNLOAD_URL" >> $GITHUB_ENV |
| 148 | +
|
| 149 | + - name: Download server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }} |
| 150 | + continue-on-error: true |
| 151 | + id: server-download |
| 152 | + if: ${{ env.DOWNLOAD_URL != 'null' }} |
| 153 | + run: | |
| 154 | + echo "Downloading release tarball from $DOWNLOAD_URL" |
| 155 | + wget $DOWNLOAD_URL -O nextcloud.zip |
| 156 | + unzip nextcloud.zip |
150 | 157 |
|
151 | 158 | - name: Checkout server master fallback |
152 | | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
153 | | - if: ${{ steps.server-checkout.outcome != 'success' }} |
| 159 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 160 | + if: ${{ steps.server-download.outcome != 'success' }} |
154 | 161 | with: |
155 | 162 | persist-credentials: false |
156 | 163 | submodules: true |
157 | 164 | repository: nextcloud/server |
158 | 165 | path: nextcloud |
159 | 166 |
|
| 167 | + |
160 | 168 | - name: Sign app |
161 | 169 | run: | |
162 | 170 | # Extracting release |
|
0 commit comments