diff --git a/.github/workflows/.deploy_stack.yml b/.github/workflows/.deploy_stack.yml index 994f202b..bdcbbc38 100644 --- a/.github/workflows/.deploy_stack.yml +++ b/.github/workflows/.deploy_stack.yml @@ -79,7 +79,7 @@ jobs: build-ui: name: Build And upload UI to s3 ${{ inputs.environment_name }} environment: ${{ inputs.environment_name }} - if: ${{ inputs.command == 'apply' }} + if: ( inputs.command == 'apply' ) needs: [deploy-api, deploy-cloudfront] runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/.deployer.yml b/.github/workflows/.deployer.yml index 83b40841..0cb5ae51 100644 --- a/.github/workflows/.deployer.yml +++ b/.github/workflows/.deployer.yml @@ -92,7 +92,7 @@ jobs: # Run terraform terragrunt run-all ${{inputs.command}} --terragrunt-non-interactive - name: Terragrunt API Outputs - if: ${{ inputs.working_directory == 'api' && inputs.command == 'apply' }} + if: ( inputs.working_directory == 'api' && inputs.command == 'apply' ) working-directory: terraform/${{ inputs.working_directory }}/${{ inputs.environment_name }} id: tg-outputs env: @@ -109,7 +109,7 @@ jobs: echo "API_GW_URL=$(jq -r .apigw_url.value outputs.json)" >> $GITHUB_OUTPUT - name: Terragrunt Frontend Outputs - if: ${{ inputs.working_directory == 'frontend' && inputs.command == 'apply' }} + if: ( inputs.working_directory == 'frontend' && inputs.command == 'apply' ) working-directory: terraform/${{ inputs.working_directory }}/${{ inputs.environment_name }} id: tg-outputs-frontend env: diff --git a/.github/workflows/.e2e.yml b/.github/workflows/.e2e.yml index c69c2a59..03b75250 100644 --- a/.github/workflows/.e2e.yml +++ b/.github/workflows/.e2e.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Run Docker compose - if: ${{ inputs.frontend_url == 'http://localhost:3000' }} + if: ( inputs.frontend_url == 'http://localhost:3000' ) env: BACKEND_IMAGE: ghcr.io/${{ github.repository }}/backend:${{ inputs.tag }} FLYWAY_IMAGE: ghcr.io/${{ github.repository }}/migrations:${{ inputs.tag }} @@ -29,7 +29,7 @@ jobs: run: docker compose up -d --wait continue-on-error: true - name: Docker Compose Logs - if: ${{ inputs.frontend_url == 'http://localhost:3000' }} + if: ( inputs.frontend_url == 'http://localhost:3000' ) run: docker compose logs - name: Cache Playwright Browsers uses: actions/cache@v4 diff --git a/.github/workflows/.tests.yml b/.github/workflows/.tests.yml index 889b7f0d..4c2b5eb4 100644 --- a/.github/workflows/.tests.yml +++ b/.github/workflows/.tests.yml @@ -75,7 +75,7 @@ jobs: triggers: ('frontend/') trivy: name: Trivy Security Scan - if: ${{ ! github.event.pull_request.draft }} + if: (! github.event.pull_request.draft) runs-on: ubuntu-24.04 permissions: contents: read # This is required for actions/checkout diff --git a/.github/workflows/pause-resources.yml b/.github/workflows/pause-resources.yml index a1b62862..57a551bf 100644 --- a/.github/workflows/pause-resources.yml +++ b/.github/workflows/pause-resources.yml @@ -33,7 +33,7 @@ jobs: uses: ./.github/workflows/.stack-prefix.yml pause-resources-dev: name: Pause Resources Dev - if: (${{inputs.app_env == 'dev' || inputs.app_env == 'all'}} || github.event_name == 'schedule') + if: (inputs.app_env == 'dev' || inputs.app_env == 'all' || github.event_name == 'schedule') needs: [stack-prefix] runs-on: ubuntu-24.04 steps: @@ -52,7 +52,7 @@ jobs: pause-resources-test: name: Pause Resources Test - if: (${{inputs.app_env == 'test' || inputs.app_env == 'all'}} || github.event_name == 'schedule') + if: (inputs.app_env == 'test' || inputs.app_env == 'all' || github.event_name == 'schedule') environment: test needs: [stack-prefix] runs-on: ubuntu-24.04 @@ -72,7 +72,7 @@ jobs: ./.github/scripts/pause.sh test ${{ needs.stack-prefix.outputs.stack_prefix }} pause-resources-prod: name: Pause Resources PROD - if: (${{inputs.app_env == 'prod' || inputs.app_env == 'all'}} || github.event_name == 'schedule') + if: (inputs.app_env == 'prod' || inputs.app_env == 'all' || github.event_name == 'schedule') environment: prod needs: [stack-prefix] runs-on: ubuntu-24.04 diff --git a/.github/workflows/prune-env.yml b/.github/workflows/prune-env.yml index a9f4d6bf..b16e6314 100644 --- a/.github/workflows/prune-env.yml +++ b/.github/workflows/prune-env.yml @@ -24,7 +24,7 @@ permissions: jobs: destroy-dev: name: Destroy Stack Dev - if: ${{ github.event.inputs.app_env == 'dev' }} + if: ( github.event.inputs.app_env == 'dev' ) uses: ./.github/workflows/.destroy_stack.yml secrets: inherit with: @@ -32,7 +32,7 @@ jobs: app_env: ${{ github.event.inputs.app_env }} destroy-test: name: Destroy Stack Test - if: ${{ github.event.inputs.app_env == 'test' }} + if: ( github.event.inputs.app_env == 'test' ) uses: ./.github/workflows/.destroy_stack.yml secrets: inherit with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a6d2811..0a6220ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ on: default: 'test' type: string concurrency: - group: main + group: prod cancel-in-progress: false # This concurrency group ensures that only one workflow runs at a time for the main branch. permissions: