diff --git a/.github/workflows/clean-manifests.yaml b/.github/workflows/clean-manifests.yaml index 2f1a2f1c72..9dd08366d1 100644 --- a/.github/workflows/clean-manifests.yaml +++ b/.github/workflows/clean-manifests.yaml @@ -23,6 +23,7 @@ jobs: if: ${{ github.repository == 'coollabsio/coolify' }} permissions: contents: read + actions: write # to disable this workflow after a failure environment: name: cleanup deployment: false @@ -51,3 +52,9 @@ jobs: scripts/deleted-manifests.tsv if-no-files-found: ignore retention-days: 90 + + - name: Disable this workflow after a failure + if: ${{ failure() }} + env: + GH_TOKEN: ${{ github.token }} + run: gh workflow disable clean-manifests.yaml --repo "$GITHUB_REPOSITORY"