Skip to content

Commit

Permalink
Update affected-stacks job outputs and matrix integration (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr authored Aug 1, 2024
1 parent d7f71d4 commit ccc0b98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/integrations/github-actions/affected-stacks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
types: [opened, synchronize, reopened, closed, labeled, unlabeled]

jobs:
context:
atmos-affected:
runs-on: ubuntu-latest
steps:
- id: affected
Expand All @@ -50,15 +50,15 @@ jobs:
nested-matrices-count: 1

outputs:
affected: ${{ steps.affected.outputs.affected }}
matrix: ${{ steps.affected.outputs.matrix }}
has-affected-stacks: ${{ steps.affected.outputs.has-affected-stacks }}

# This job is an example how to use the affected stacks with the matrix strategy
atmos-plan:
needs: ["atmos-affected"]
if: ${{ needs.atmos-affected.outputs.has-affected-stacks == 'true' }}
name: ${{ matrix.stack_slug }}
runs-on: ['self-hosted']
name: Plan ${{ matrix.stack_slug }}
runs-on: ubuntu-latest
strategy:
max-parallel: 10
fail-fast: false # Don't fail fast to avoid locking TF State
Expand Down

0 comments on commit ccc0b98

Please sign in to comment.