mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
ci: make sure new PRs are sent to dev (#7342)
This commit is contained in:
parent
d8c194d54a
commit
5c596f142c
1 changed files with 20 additions and 0 deletions
20
.github/workflows/target-branch.yml
vendored
Normal file
20
.github/workflows/target-branch.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Make sure new PRs are sent to dev
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, edited]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-branch:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: Vankka/pr-target-branch-action@v2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
target: master
|
||||||
|
exclude: dev
|
||||||
|
change-to: dev
|
||||||
|
comment: |
|
||||||
|
Your PR was set to target `master`, PRs should be target `dev`
|
||||||
|
The base branch of this PR has been automatically changed to `dev`, please check that there are no merge conflicts
|
Loading…
Add table
Add a link
Reference in a new issue