Skip to content

Commit

Permalink
try to fix checks 2
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Jul 30, 2024
1 parent 881631c commit b934b86
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/pr-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,24 @@ jobs:
continue-on-error: true

- name: Check Milestone
id: milestone-check
if: ${{ github.event.pull_request.milestone == null }}
run: |
if [[ -z "${{ github.event.pull_request.milestone }}" || "${{ github.event.pull_request.milestone }}" == "null" ]]; then
echo "Milestone is not set. Failing the workflow."
exit 1
fi
echo "Milestone is not set. Failing the workflow."
exit 1
continue-on-error: true

- name: Check Assignee
id: assignee-check
if: ${{ github.event.pull_request.assignees == '' }}
run: |
if [[ -z "${{ github.event.pull_request.assignees[*] }}" ]]; then
echo "Assignee is not set. Failing the workflow."
exit 1
fi
echo "Assignee is not set. Failing the workflow."
exit 1
continue-on-error: true

- name: Check Labels
id: label-check
if: ${{ github.event.pull_request.labels == '' }}
run: |
if [[ -z "${{ github.event.pull_request.labels[*] }}" ]]; then
echo "No labels are set. Failing the workflow."
exit 1
fi
echo "No labels are set. Failing the workflow."
exit 1
continue-on-error: true

- name: Set Result for Title Check
Expand Down

0 comments on commit b934b86

Please sign in to comment.