mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
Chore: Update github action dashboard project (#71154)
Chore: update github action dashboard project
This commit is contained in:
parent
76f7152904
commit
c87de8305c
13
.github/workflows/dashboards-issue-add-label.yml
vendored
13
.github/workflows/dashboards-issue-add-label.yml
vendored
@ -24,27 +24,20 @@ jobs:
|
|||||||
query($org: String!, $repo: String!) {
|
query($org: String!, $repo: String!) {
|
||||||
repository(name: $repo, owner: $org) {
|
repository(name: $repo, owner: $org) {
|
||||||
issue (number: ${{ github.event.issue.number }}) {
|
issue (number: ${{ github.event.issue.number }}) {
|
||||||
|
id
|
||||||
projectItems(first:20) {
|
projectItems(first:20) {
|
||||||
nodes {
|
nodes {
|
||||||
id,
|
|
||||||
project {
|
project {
|
||||||
number,
|
number,
|
||||||
title
|
|
||||||
},
|
},
|
||||||
fieldValueByName(name:"Status") {
|
|
||||||
... on ProjectV2ItemFieldSingleSelectValue {
|
|
||||||
optionId
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}' -f org=$ORGANIZATION -f repo=$REPO > projects_data.json
|
}' -f org=$ORGANIZATION -f repo=$REPO > projects_data.json
|
||||||
|
|
||||||
echo 'IN_TARGET_PROJ='$(jq '.data.repository.issue.projectItems.nodes[] | select(.project.number==${{ env.TARGET_PROJECT }}) | .project != null' projects_data.json) >> $GITHUB_ENV
|
echo 'IN_TARGET_PROJ='$(jq '.data.repository.issue.projectItems.nodes[] | select(.project.number==${{ env.TARGET_PROJECT }}) | .project != null' projects_data.json) >> $GITHUB_ENV
|
||||||
echo 'ITEM_ID='$(jq '.data.repository.issue.projectItems.nodes[] | select(.project.number==${{ env.TARGET_PROJECT }}) | .id' projects_data.json) >> $GITHUB_ENV
|
echo 'ITEM_ID='$(jq '.data.repository.issue.id' projects_data.json) >> $GITHUB_ENV
|
||||||
- name: Set up label array
|
- name: Set up label array
|
||||||
if: env.IN_TARGET_PROJ
|
if: env.IN_TARGET_PROJ
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user