Skip to content

Commit

Permalink
fix(ci): set environment at top level (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Aug 7, 2024
1 parent 7dda7f7 commit 6743925
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ on:
description: Run Cypress tests if the core apps have changed (excludes sync)
value: ${{ jobs.init.outputs.deploy_core }}

# Set environment at workflow/top level
environment: ${{ inputs.environment }}

jobs:
init:
name: Deploy (init)
environment: ${{ inputs.environment }}
outputs:
fam-modded-zone: ${{ steps.fam-modded-zone.outputs.fam-modded-zone }}
deploy_core: ${{ steps.triggers.outputs.core }}
Expand Down Expand Up @@ -105,7 +107,6 @@ jobs:
deploy:
name: Deploy
if: needs.init.outputs.deploy_core == 'true'
environment: ${{ inputs.environment }}
needs: [init]
runs-on: ubuntu-22.04
timeout-minutes: 10
Expand Down

0 comments on commit 6743925

Please sign in to comment.