From ebede03af94ca7b55a7f8c3f7c5bb241166aaa0a Mon Sep 17 00:00:00 2001 From: MarkAckert Date: Tue, 16 Apr 2024 15:31:08 -0400 Subject: [PATCH 1/3] debug pr labels from ci trigger Signed-off-by: MarkAckert --- .github/workflows/build-packaging.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-packaging.yml b/.github/workflows/build-packaging.yml index b109d45e89..42908a0dc7 100644 --- a/.github/workflows/build-packaging.yml +++ b/.github/workflows/build-packaging.yml @@ -95,6 +95,8 @@ jobs: # run_build explanation: workflow_dispatch can be manual, '/ci' comment trigger, or nightly. # If this is a workflow_disaptch and not a '/ci' trigger, always run, ignoring PR labels. Otherwise, always check the label. run: | + echo ${{ steps.get-labels.outputs.result }} + echo ${{ fromJson(steps.get-labels.outputs.result) }} echo "run_build=${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.ORIGIN_ISSUE_TRIGGER == 'false') || !contains(fromJson(steps.get-labels.outputs.result), 'Build: None') }}" >> $GITHUB_OUTPUT - id: check-test name: 'export conditional used to determine if we should run a test suite' From 68bc64e8d129fb735a25a614b91ad217a4bbc04d Mon Sep 17 00:00:00 2001 From: MarkAckert Date: Tue, 16 Apr 2024 15:36:41 -0400 Subject: [PATCH 2/3] octokit is async Signed-off-by: MarkAckert --- .github/workflows/build-packaging.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-packaging.yml b/.github/workflows/build-packaging.yml index 42908a0dc7..62d80c8f39 100644 --- a/.github/workflows/build-packaging.yml +++ b/.github/workflows/build-packaging.yml @@ -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', @@ -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 '[]' } From 679e2c07a1f1d0a3fe8d3b041c8cafb13eaef544 Mon Sep 17 00:00:00 2001 From: MarkAckert Date: Tue, 16 Apr 2024 16:04:53 -0400 Subject: [PATCH 3/3] remove debug stmt Signed-off-by: MarkAckert --- .github/workflows/build-packaging.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build-packaging.yml b/.github/workflows/build-packaging.yml index 62d80c8f39..1b64e08db8 100644 --- a/.github/workflows/build-packaging.yml +++ b/.github/workflows/build-packaging.yml @@ -96,8 +96,6 @@ jobs: # run_build explanation: workflow_dispatch can be manual, '/ci' comment trigger, or nightly. # If this is a workflow_disaptch and not a '/ci' trigger, always run, ignoring PR labels. Otherwise, always check the label. run: | - echo ${{ steps.get-labels.outputs.result }} - echo ${{ fromJson(steps.get-labels.outputs.result) }} echo "run_build=${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.ORIGIN_ISSUE_TRIGGER == 'false') || !contains(fromJson(steps.get-labels.outputs.result), 'Build: None') }}" >> $GITHUB_OUTPUT - id: check-test name: 'export conditional used to determine if we should run a test suite'