ci: run the workflow as a dry run first

- a manually triggered first run in CI uploads the full list of manifests to delete
- a later pull request makes the workflow hourly again
This commit is contained in:
peaklabs-dev committed 2026-10-30 22:37:03 +01:00
1 parent 200042e16b
commit 4b7b9bc145
1 file changed
+5 -7
+5 -7
View File
@@ -1,8 +1,6 @@
name: Clean manifests
on:
schedule:
- cron: "20 * * * *"
workflow_dispatch:
permissions: {}
@@ -34,18 +32,18 @@ jobs:
with:
persist-credentials: false
- name: Delete the unused manifests
- name: List the manifests to delete
env:
GH_TOKEN: ${{ secrets.GHCR_CLEANUP_TOKEN }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_CLEANUP_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_CLEANUP_TOKEN }}
run: scripts/clean-manifests.sh --delete 200
run: scripts/clean-manifests.sh
- name: Upload the list of deleted manifests
- name: Upload the list of manifests to delete
if: ${{ always() }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: deleted-manifests
path: scripts/deleted-manifests.tsv
name: manifests-to-delete
path: scripts/manifests-to-delete.tsv
if-no-files-found: ignore
retention-days: 90