Refactor validators to reduce repeated conditionals #5832
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Definition of Done | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, ready_for_review] | |
| concurrency: | |
| group: 'workflow-${{ github.workflow }}-${{ github.ref }}' | |
| cancel-in-progress: true | |
| jobs: | |
| check-dod: | |
| # Skip this job for draft pull requests as they are considered works in progress | |
| # or the base clone URL may be different than the head clone URL. | |
| if: | | |
| github.event.pull_request.draft == false && | |
| github.event.pull_request.head.repo.fork == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: platisd/definition-of-done@master | |
| with: | |
| dod_yaml: '.github/dod.yml' | |
| message_header: 'The A11y and PO reviews will only take place after all other DoD steps have been completed by the Developer:' | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |