diff --git a/.gitea/workflows/backport-commoncore.yml b/.gitea/workflows/backport-commoncore.yml index 360278d9..89970fe6 100644 --- a/.gitea/workflows/backport-commoncore.yml +++ b/.gitea/workflows/backport-commoncore.yml @@ -38,7 +38,7 @@ jobs: merged="$(jq -r '.pull_request.merged // (.pull_request.merged_at != null)' "$GITHUB_EVENT_PATH")" base_branch="$(jq -r '.pull_request.base.ref' "$GITHUB_EVENT_PATH")" - has_disable_label="$(jq -r --arg label "$DISABLE_BACKPORT_LABEL" 'any(.pull_request.labels[]?; .name == $label)' "$GITHUB_EVENT_PATH")" + has_disable_label="$(jq -r --arg disable_backport_label "$DISABLE_BACKPORT_LABEL" 'any(.pull_request.labels[]?; .name == $disable_backport_label)' "$GITHUB_EVENT_PATH")" { echo "should_backport=$([[ "$merged" == "true" && "$base_branch" == "main" && "$has_disable_label" != "true" ]] && echo true || echo false)" @@ -55,7 +55,7 @@ jobs: -H "Authorization: token ${GITHUB_TOKEN}" \ "${api_url}/repos/${GITHUB_REPOSITORY}/labels")" - if ! jq -e --arg label "$DISABLE_BACKPORT_LABEL" 'any(.[]; .name == $label)' <<< "$labels" >/dev/null; then + if ! jq -e --arg disable_backport_label "$DISABLE_BACKPORT_LABEL" 'any(.[]; .name == $disable_backport_label)' <<< "$labels" >/dev/null; then curl -fsS -X POST \ -H "Accept: application/json" \ -H "Authorization: token ${GITHUB_TOKEN}" \