Skip to content

Commit

Permalink
add cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Dec 5, 2024
1 parent 01754ae commit 2559f01
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,15 @@ jobs:
# Make sure the S3 bucket content is accessible publicly
aws s3 website "s3://$AWS_BUCKET_NAME/" --index-document index.html --error-document index.html
cleanup:
needs: [terraform, database, server, web]
runs-on: ubuntu-latest
if: always()

steps:
- name: Remove deploy label
if: github.event_name == 'pull_request' && github.event.label.name == 'deploy'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "deploy"
run: |
gh pr edit ${{ github.event.pull_request.number }} --remove-label "deploy"

0 comments on commit 2559f01

Please sign in to comment.