Skip to content

Commit

Permalink
Remove condition on snapshot creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Oct 13, 2024
1 parent 4c556a4 commit 20ddbea
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/snapshot-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,11 @@ jobs:

- name: Create Hashed Snapshot if Needed
id: create_snapshot
if: ${{ inputs.snapshot_name != '' }}
run: |
set -e {
cci task run create_hashed_snapshot \
$([[ "${{ inputs.create_snapshot_commit_status }}" == "true" ]] && echo " --create-commit-status") \
$([[ "${{ inputs.create_snapshot_environment }}" == "true" ]] && echo " --create-environment") \
$([[ "${{ inputs.debug }}" == "true" ]] && echo " --debug")
} || {
echo "::error::Failed to start the snapshot. Running cci error info..."
cci error info
exit 1
}
cci task run create_hashed_snapshot \
$([[ "${{ inputs.create_snapshot_commit_status }}" == "true" ]] && echo " --create-commit-status") \
$([[ "${{ inputs.create_snapshot_environment }}" == "true" ]] && echo " --create-environment") \
$([[ "${{ inputs.debug }}" == "true" ]] && echo " --debug")
shell: bash
- name: Capture CumulusCI Build History
if: always()
Expand Down

0 comments on commit 20ddbea

Please sign in to comment.