diff --git a/.github/workflows/aws-preview.yml b/.github/workflows/aws-preview.yml index b30d5c7a..cba9c6c9 100644 --- a/.github/workflows/aws-preview.yml +++ b/.github/workflows/aws-preview.yml @@ -2,7 +2,7 @@ name: Deploy Backend to Preview ECS on: workflow_run: - workflows: [Build And Test] + workflows: ["Build And Test"] types: - completed @@ -14,11 +14,12 @@ env: permissions: id-token: write # This is required for requesting the JWT contents: read # This is required for actions/checkout + actions: write jobs: deploy: runs-on: ubuntu-latest - environment: production + environment: preview strategy: fail-fast: true diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 50869593..7ba1a293 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -20,7 +20,7 @@ env: jobs: build: runs-on: ubuntu-latest - environment: production + environment: preview strategy: fail-fast: true defaults: