Skip to content

Commit

Permalink
message
Browse files Browse the repository at this point in the history
  • Loading branch information
andromaqui committed Jun 11, 2024
1 parent cef04b6 commit e955165
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/preview-env-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: preview-env-deploy
on:
pull_request:
types: [labeled, synchronize]

jobs:
deploy-preview:
#if: github.event.pull_request.state != 'closed' && (contains( github.event.label.name, 'deploy') || contains( github.event.pull_request.labels.*.name, 'deploy'))
if: github.event.pull_request.state == 'closed'
if: github.event.pull_request.state != 'closed' && (contains( github.event.label.name, 'deploy') || contains( github.event.pull_request.labels.*.name, 'deploy'))
runs-on: ubuntu-22.04
timeout-minutes: 40
name: deploy-preview-env
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/preview-env-teardown.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: preview-env-teardown
on:
pull_request:
types: [unlabeled, closed]

jobs:
deploy-preview:
#if: github.event.label.name == 'deploy' || (github.event.action == 'closed' && contains( github.event.pull_request.labels.*.name, 'deploy') )
if: github.event.label.name == 'deploy' || (github.event.action == 'closed' && contains( github.event.pull_request.labels.*.name, 'deploy') )
runs-on: ubuntu-22.04
timeout-minutes: 20
name: teardown-preview-env
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
BUCKET_NAME: ${{ steps.secrets.outputs.TEMP_BUCKET }}
run: |
gcloud config set pass_credentials_to_gsutil true
gsutil -m rm -r gs://$BUCKET_NAME/pr-${{ github.event.number }}
gsutil -m rm -r gs://$BUCKET_NAME/pr-${{ github.event.number }}/
- name: Update comment
uses: peter-evans/create-or-update-comment@v4
Expand Down

0 comments on commit e955165

Please sign in to comment.