diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 7caae20..480605c 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -34,7 +34,7 @@ jobs: - name: Delete workflow runs for current repo uses: Mattraks/delete-workflow-runs@v2 with: - token: ${{ github.token }} + token: ${{ steps.get-token.outputs.token }} repository: ${{ github.repository }} retain_days: 7 keep_minimum_runs: 6 @@ -45,6 +45,13 @@ jobs: token: ${{ steps.get-token.outputs.token }} environment: Preview onlyRemoveDeployments: true + + - name: Delete MAIN deployment + uses: strumwolf/delete-deployment-environment@v2.3.0 + with: + token: ${{ steps.get-token.outputs.token }} + environment: Production + onlyRemoveDeployments: true - name: Checkout repository uses: actions/checkout@v2