ci: Do not run codeowners merge workflow on draft PRs #90
Workflow file for this run
This file contains 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: 'Codeowners merging' | |
on: | |
pull_request: { types: [opened] } | |
issue_comment: { types: [created] } | |
pull_request_review: { types: [submitted] } | |
jobs: | |
codeowners-merge: | |
if: 'github.repository == "SchemaStore/schemastore" and github.event.pull_request.draft == false' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: 'actions/checkout@v4' | |
- name: 'Run Codeowners merge check' | |
uses: 'OSS-Docs-Tools/[email protected]' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
merge_method: 'squash' |