Skip to content

Commit cfde66d

Browse files
committed
fix(ci): resolve issues with the new pull request checks and remove diagnostics
Signed-off-by: Nathan Klick <[email protected]>
1 parent 8bb3497 commit cfde66d

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

.github/workflows/flow-pull-request-formatting.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,18 @@ jobs:
5555
runs-on: [self-hosted, Linux, medium, ephemeral]
5656
steps:
5757
- name: Check Milestone
58+
if: ${{ github.event.pull_request.milestone == null }}
5859
run: |
59-
echo "::group::Event Data"
60-
echo "${{ toJSON(github.event) }}" | jq .
61-
echo "::endgroup::"
62-
63-
if [ "${{ github.event.pull_request_target.milestone }}" == "null" ] || [ "${{ github.event.pull_request_target.milestone }}" == "" ]; then
6460
echo "Milestone is not set. Failing the workflow."
6561
exit 1
66-
fi
67-
68-
- name: Milestone is set
69-
run: |
70-
echo "Milestone is set."
7162
7263
assignee-check:
7364
name: Assignee Check
7465
runs-on: [ self-hosted, Linux, medium, ephemeral ]
7566

7667
steps:
7768
- name: Check Assignee
69+
if: ${{ github.event.pull_request.assignees == null || github.event.pull_request.assignees[0] == null }}
7870
run: |
79-
echo "::group::Event Data"
80-
echo "${{ toJSON(github.event) }}" | jq .
81-
echo "::endgroup::"
82-
83-
if [ "${{ github.event.pull_request_target.assignee }}" == "null" ] || [ "${{ github.event.pull_request_target.assignee }}" == "" ]; then
8471
echo "Assignee is not set. Failing the workflow."
8572
exit 1
86-
fi
87-
88-
- name: Assignee is set
89-
run: |
90-
echo "Assignee is set."

0 commit comments

Comments
 (0)