Skip to content

Commit

Permalink
Fix step reference in condition on finalize snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Sep 15, 2024
1 parent a1f5343 commit 1859f39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/feature-test-2gp-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@ jobs:
- name: Finalize Snapshot Creation
id: finalize_snapshot
if: inputs.create_pr_snapshot == true || (inputs.create_failure_snapshot == true && job.status != 'success')
if: inputs.create_pr_snapshot == true && steps.start_snapshot|| (inputs.create_failure_snapshot == true && job.status != 'success')
env:
GITHUB_TOKEN: ${{ secrets.github-token }}
run: |
# If the snapshot creation task was run, finalize the snapshot
if [[ "${{ inputs.create_pr_snapshot }}" == "true" && -n "${{ steps.start_snapshot_creation.outputs.SNAPSHOT_ID }}" ]]; then
if [[ "${{ inputs.create_pr_snapshot }}" == "true" && -n "${{ steps.start_snapshot.outputs.SNAPSHOT_ID }}" ]]; then
cci task run github_pull_request_snapshot \
--snapshot-id "${{ steps.start_snapshot_creation.outputs.SNAPSHOT_ID }}" \
--snapshot-id "${{ steps.start_snapshot.outputs.SNAPSHOT_ID }}" \
--build-success "${{ job.status == 'success' }}" \
--build-fail-tests "${{ contains(steps.feature_test.outputs.*, 'ApexTestException') }}" \
--snapshot-is-packaged true \
Expand Down

0 comments on commit 1859f39

Please sign in to comment.