Chore: Fix workflow that adds dashboards label to issues (#106166)
fix issueNumber
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user