@@ -44,11 +44,10 @@ jobs:
4444 npm run build
4545
4646 - name : " Upload to Actions"
47- if : ${{ github.event_name == 'workflow_dispatch' }}
4847 uses : actions/upload-artifact@v6
4948 with :
5049 name : artifacts
51- path : web-ext-artifacts/
50+ path : web-ext-artifacts
5251
5352 - name : " Upload to Release"
5453 if : ${{ github.event_name == 'release' }}
@@ -145,6 +144,8 @@ jobs:
145144 steps :
146145 - name : " Checkout"
147146 uses : actions/checkout@v6
147+ with :
148+ persist-credentials : false
148149
149150 - name : " Mozilla Addon Update"
150151 uses : cssnr/mozilla-addon-update-action@v1
@@ -194,6 +195,37 @@ jobs:
194195 app_id : 146360
195196 app_private_key : ${{ secrets.APP_PRIVATE_KEY }}
196197
198+ # check:
199+ # name: "Check"
200+ # if: ${{ always() }}
201+ # runs-on: Ubuntu-latest
202+ # timeout-minutes: 5
203+ # needs: [build, publish-mozilla, update-mozilla]
204+ #
205+ # permissions:
206+ # contents: write
207+ #
208+ # steps:
209+ # - name: "Alls Green"
210+ # uses: re-actors/alls-green@release/v1
211+ # with:
212+ # jobs: ${{ toJSON(needs) }}
213+ # allowed-skips: release
214+ # allowed-failures: vt, vhs
215+ #
216+ # - name: "Cleanup Release"
217+ # if: ${{ failure() }}
218+ # env:
219+ # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
220+ # run: |
221+ # echo -e "\n## Cleanup Release\n\n" >> "$GITHUB_STEP_SUMMARY"
222+ # echo -e "Deleting Release and Tag: \`${{ github.ref_name }}\`\n\n" >> "$GITHUB_STEP_SUMMARY"
223+ # if gh release delete "${{ github.ref_name }}" --repo "${{ github.repository }}" --cleanup-tag;then
224+ # echo -e "✅ Cleanup Success.\n" >> "$GITHUB_STEP_SUMMARY"
225+ # else
226+ # echo -e "⛔ Cleanup Failed!\n" >> "$GITHUB_STEP_SUMMARY"
227+ # fi
228+
197229# publish-chrome:
198230# name: 'Publish Chrome'
199231# runs-on: ubuntu-latest
@@ -247,3 +279,4 @@ jobs:
247279# tag: ${{ github.ref }}
248280# overwrite: true
249281# file_glob: true
282+
0 commit comments