Skip to content

Commit

Permalink
fix: bolean expression so we don't cancel runs on other PRs (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpp23 authored Apr 27, 2021
1 parent 5fb07e7 commit ee1451b
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 @@ -29,7 +29,7 @@ function convertToKeyValuePairs() {

function getRunningWorkflowIds() {
local workflow_ids
workflow_ids=$(jq ".workflow_runs | .[] | select(.head_branch==\"${branch?}\" and .head_repository.full_name==\"${repo?}\" and .status==\"in_progress\" or .status==\"queued\" or .status== \"waiting\") | .id ")
workflow_ids=$(jq ".workflow_runs | .[] | select(.head_branch==\"${branch?}\" and .head_repository.full_name==\"${repo?}\" and (.status==\"in_progress\" or .status==\"queued\" or .status== \"waiting\")) | .id ")
local condition="<"
for id in $workflow_ids; do
if [[ "$id" -gt "$GITHUB_RUN_ID" ]]; then
Expand Down

0 comments on commit ee1451b

Please sign in to comment.