diff --git a/.github/workflows/close-pr.yml b/.github/workflows/close-pr.yml index fc75c50..2cdff09 100644 --- a/.github/workflows/close-pr.yml +++ b/.github/workflows/close-pr.yml @@ -50,12 +50,15 @@ jobs: docker compose config docker compose down --rmi all --volumes --remove-orphans + - name: 'GitHub Slug Action' + uses: rlespinasse/github-slug-action@v4 + - name: 'Remove GitHub deployment and environment' if: ${{ always() }} uses: strumwolf/delete-deployment-environment@v2.3.0 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: "${{ secrets.GITHUB_TOKEN }}" environment: test onlyRemoveDeployments: true - ref: ${{ env.VERSION_TAG }} + ref: "${{ env.GITHUB_HEAD_REF }}" diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 4fe7d9f..24b9e9e 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -167,4 +167,4 @@ jobs: description: "Deployment for ${{ env.VERSION }}" environment: test initial-status: success - ref: ${{ env.VERSION }} + ref: "${{ env.GITHUB_HEAD_REF }}"