Skip to content

Commit

Permalink
Default to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
carlssonk committed Sep 24, 2024
1 parent 50fca48 commit 9ace0e3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
branches: [main]

concurrency:
group: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || (startsWith(github.ref_name, 'dev/') && 'dev' || 'staging') }} # Prevent concurrent runs
group: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || (startsWith(github.ref_name, 'dev/') && 'dev' || 'prod') }} # Prevent concurrent runs
cancel-in-progress: false

env:
Expand All @@ -33,7 +33,7 @@ jobs:
fail-fast: ${{ steps.set-strategy.outputs.fail-fast }}
steps:
- id: set-env
run: echo "environment=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || (startsWith(github.ref_name, 'dev/') && 'dev' || 'staging') }}" >> $GITHUB_OUTPUT
run: echo "environment=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || (startsWith(github.ref_name, 'dev/') && 'dev' || 'prod') }}" >> $GITHUB_OUTPUT
- id: set-strategy
run: |
if [ ${{ github.event_name }} = "schedule" ]; then
Expand Down Expand Up @@ -95,9 +95,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Echo env
run: echo ${{ needs.setup.outputs.env }}

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit 9ace0e3

Please sign in to comment.