Update branch name references

This commit is contained in:
Nassim Jahnke
2024-12-21 14:03:02 +01:00
parent 7490b311ff
commit fd4c10947f
4 changed files with 10 additions and 10 deletions

View File

@ -9,19 +9,19 @@ jobs:
if: |
github.repository != github.event.pull_request.head.repo.full_name &&
(
github.head_ref == 'master' ||
github.head_ref == 'main' ||
github.event.pull_request.head.repo.owner.type != 'User'
)
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
id: "master_branch"
if: github.head_ref == 'master'
id: "main_branch"
if: github.head_ref == 'main'
with:
comment: "Please do not open pull requests from the `master` branch, create a new branch instead."
comment: "Please do not open pull requests from the `main` branch, create a new branch instead."
- uses: superbrothers/close-pull-request@v3
id: "org_account"
if: github.event.pull_request.head.repo.owner.type != 'User' && steps.master_branch.outcome == 'skipped'
if: github.event.pull_request.head.repo.owner.type != 'User' && steps.main_branch.outcome == 'skipped'
with:
comment: "Please do not open pull requests from non-user accounts like organizations. Create a fork on a user account instead."