Skip to content

Commit

Permalink
Merge pull request #3803 from zowe/user/markackert/ci-trigger-fixes-p2
Browse files Browse the repository at this point in the history
debug pr labels from ci trigger
  • Loading branch information
MarkAckert authored Apr 17, 2024
2 parents 5ce4af6 + 679e2c0 commit 011ab28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
return JSON.stringify(${{ toJson(github.event.pull_request.labels) }})
}
else if ('${{ github.event.inputs.ORIGIN_ISSUE_TRIGGER}}' == 'true') {
github.rest.pulls.list({
const res = await github.rest.pulls.list({
state: 'open',
head: 'zowe:${{ github.ref_name }}',
owner: 'zowe',
Expand All @@ -86,6 +86,7 @@ jobs:
const pr = resp.data.find((item) => item.head.ref == '${{ github.ref_name }}')
return JSON.stringify(pr.labels)
})
return res;
} else {
return '[]'
}
Expand Down

0 comments on commit 011ab28

Please sign in to comment.