Skip to content

Commit

Permalink
fix: ensure grep exit code is "0" #17
Browse files Browse the repository at this point in the history
  • Loading branch information
mustaphazorgati authored Mar 10, 2021
1 parent 2bdd3f2 commit 1ba8de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function convertToKeyValuePairs() {
}

function getRunningWorkflowIds() {
jq ".workflow_runs | .[] | select(.head_branch==\"${branch}\" and .head_repository.full_name==\"${repo}\" and .status==\"in_progress\" or .status==\"queued\" or .status== \"waiting\") | .id " | grep -v "${GITHUB_RUN_ID}"
jq ".workflow_runs | .[] | select(.head_branch==\"${branch}\" and .head_repository.full_name==\"${repo}\" and .status==\"in_progress\" or .status==\"queued\" or .status== \"waiting\") | .id " | grep -v "${GITHUB_RUN_ID}" || :
}

function exportAll() {
Expand Down

0 comments on commit 1ba8de3

Please sign in to comment.