Chore: Fix workflow that adds dashboards label to issues (#106166)

fix issueNumber
This commit is contained in:
Victor Marin
2025-05-28 17:14:24 +02:00
committed by GitHub
parent b5b02e2c08
commit eb1d532a9b
@@ -43,9 +43,9 @@ jobs:
run: |
# shellcheck disable=SC2016 # we don't want the $s to be expanded
gh api graphql -f query='
query($org: String!, $repo: String!) {
query($org: String!, $repo: String!, $issueNumber: Int!) {
repository(name: $repo, owner: $org) {
issue (number: $ISSUE_NUMBER) {
issue (number: $issueNumber) {
id
projectItems(first:20) {
nodes {
@@ -56,7 +56,7 @@ jobs:
}
}
}
}' -f org="$ORGANIZATION" -f repo="$REPO" > projects_data.json
}' -f org="$ORGANIZATION" -f repo="$REPO" -f issueNumber="$ISSUE_NUMBER" > projects_data.json
{
echo "IN_TARGET_PROJ=$(jq '.data.repository.issue.projectItems.nodes[] | select(.project.number=='"$TARGET_PROJECT"') | .project != null' projects_data.json)"