Skip to content

Commit

Permalink
remove files
Browse files Browse the repository at this point in the history
  • Loading branch information
andromaqui committed Jun 11, 2024
1 parent fe5a6b1 commit 8ff316d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/preview-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:

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' && (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-${{ matrix.product_context }}
name: deploy-preview-env
steps:
- uses: actions/checkout@v2

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/preview-env-teardown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: preview-env-deploy
name: preview-env-teardown
on:
pull_request:

Expand All @@ -7,7 +7,7 @@ jobs:
#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: 20
name: deploy-preview-env-${{ matrix.product_context }}
name: teardown-preview-env
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -35,14 +35,14 @@ jobs:
with:
version: ">= 363.0.0"

- name: Upload files to google bucket
- name: Remove files from Google bucket
env:
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 }}/
- name: Create comment
- name: Update comment
uses: peter-evans/create-or-update-comment@v4
env:
BUCKET_NAME: ${{ steps.secrets.outputs.TEMP_BUCKET }}
Expand Down

0 comments on commit 8ff316d

Please sign in to comment.