Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jit GitHub Action shouldn't always fail if cannot checkout the code [sc-22033] #57

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ inputs:
description: "fail control when finding is found"
required: false
default: "true"
fail_if_cannot_checkout:
description: "fail control if cannot checkout original repo"
required: false
default: "true"
inline_environment:
description: "inline environment variables to be passed to the container"
required: false
Expand Down Expand Up @@ -120,7 +124,7 @@ runs:

- name: Exit if checkout failure is fatal
shell: bash
if: steps.checkout-original-repo.outcome == 'failure' && fromJSON(github.event.inputs.client_payload).payload.workflow_job_name != 'enrich'
if: steps.checkout-original-repo.outcome == 'failure' && fromJSON(github.event.inputs.client_payload).payload.workflow_job_name != 'enrich' && inputs.fail_if_cannot_checkout == 'true'
run: |
echo "(error) Original repo checkout failed, can't continue job execution"
exit 102
Expand Down