Skip to content

Commit

Permalink
add support for the --include-spacelift-admin-stacks flag (#14)
Browse files Browse the repository at this point in the history
* add support for the --include-spacelift-admin-stacks flag
  • Loading branch information
mcalhoun authored Jul 13, 2023
1 parent b720e01 commit 8f1575b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ inputs:
description: The path to the atmos.yaml file
required: false
default: atmos.yaml
atmos-include-spacelift-admin-stacks:
description: Whether to include the Spacelift admin stacks of affected stacks in the output
required: false
default: "true"
install-terraform:
description: Whether to install terraform
required: false
Expand Down Expand Up @@ -98,7 +102,11 @@ runs:
env:
ATMOS_CLI_CONFIG_PATH: ${{inputs.atmos-config-path}}
run: |
atmos describe affected --file affected-stacks.json --verbose=true --repo-path "$GITHUB_WORKSPACE/main-branch"
if [[ "${{ inputs.atmos-include-spacelift-admin-stacks }}" == "true" ]]; then
atmos describe affected --file affected-stacks.json --verbose=true --repo-path "$GITHUB_WORKSPACE/main-branch" --include-spacelift-admin-stacks=true
else
atmos describe affected --file affected-stacks.json --verbose=true --repo-path "$GITHUB_WORKSPACE/main-branch"
fi
affected=$(jq -c '.' < affected-stacks.json)
printf "%s" "affected=$affected" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 8f1575b

Please sign in to comment.