Skip to content

Commit

Permalink
Merge pull request #2 from eduard-nomi/patch-1
Browse files Browse the repository at this point in the history
Update run filter to use match instead of ==
  • Loading branch information
sirotsinskyi authored Jan 10, 2025
2 parents 93ff44d + 35edac5 commit ef9617e
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 @@ -23,7 +23,7 @@ function find_workflow {
counter=$(( $counter + 1 ))
workflow=$(curl -s "https://api.github.com/repos/${INPUT_OWNER}/${INPUT_REPO}/actions/runs?event=repository_dispatch&sort:created" \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${INPUT_TOKEN}" |jq '[.workflow_runs[] | select(.display_title == $title)][0]' --arg title ${INPUT_EVENT_TYPE})
-H "Authorization: Bearer ${INPUT_TOKEN}" |jq '[.workflow_runs[] | select(.display_title | match($title))][0]' --arg title ${INPUT_EVENT_TYPE})

wtime=$(echo $workflow | jq -r '.created_at')
atime=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
Expand Down

0 comments on commit ef9617e

Please sign in to comment.