Skip to content

Commit

Permalink
fix jq line
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Jun 12, 2024
1 parent 5700bc3 commit 2e9b0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/prevent-no-label-execution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# Fetch all labels on the pull request
all_labels=$(jq -r '.pull_request.labels | map(.name) | @json' "${GITHUB_EVENT_PATH}")
required_label=$(jq -r --arg label "${{ inputs.label }}" 'map(select(. == $label)) | .[0]' <<< "${all_labels}")
required_label=$(echo "${all_labels}" | jq -r --arg label "${{ inputs.label }}" 'map(select(. == $label)) | .[0]')
if [ -n "${required_label}" ]; then
echo "true"
Expand Down

0 comments on commit 2e9b0b4

Please sign in to comment.