From cfde66d1ce1bfcf45fb06d7ca88f808155f656d5 Mon Sep 17 00:00:00 2001 From: Nathan Klick Date: Fri, 31 May 2024 17:24:40 -0500 Subject: [PATCH] fix(ci): resolve issues with the new pull request checks and remove diagnostics Signed-off-by: Nathan Klick --- .../flow-pull-request-formatting.yaml | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/flow-pull-request-formatting.yaml b/.github/workflows/flow-pull-request-formatting.yaml index 070791f5a5e8..d24dd473e675 100644 --- a/.github/workflows/flow-pull-request-formatting.yaml +++ b/.github/workflows/flow-pull-request-formatting.yaml @@ -55,19 +55,10 @@ jobs: runs-on: [self-hosted, Linux, medium, ephemeral] steps: - name: Check Milestone + if: ${{ github.event.pull_request.milestone == null }} run: | - echo "::group::Event Data" - echo "${{ toJSON(github.event) }}" | jq . - echo "::endgroup::" - - if [ "${{ github.event.pull_request_target.milestone }}" == "null" ] || [ "${{ github.event.pull_request_target.milestone }}" == "" ]; then echo "Milestone is not set. Failing the workflow." exit 1 - fi - - - name: Milestone is set - run: | - echo "Milestone is set." assignee-check: name: Assignee Check @@ -75,16 +66,7 @@ jobs: steps: - name: Check Assignee + if: ${{ github.event.pull_request.assignees == null || github.event.pull_request.assignees[0] == null }} run: | - echo "::group::Event Data" - echo "${{ toJSON(github.event) }}" | jq . - echo "::endgroup::" - - if [ "${{ github.event.pull_request_target.assignee }}" == "null" ] || [ "${{ github.event.pull_request_target.assignee }}" == "" ]; then echo "Assignee is not set. Failing the workflow." exit 1 - fi - - - name: Assignee is set - run: | - echo "Assignee is set."