We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 805234a commit c091823Copy full SHA for c091823
1 file changed
.github/workflows/PR-notify.yml
@@ -22,16 +22,16 @@ jobs:
22
enforce-dev-branch:
23
name: 强制使用dev分支
24
runs-on: ubuntu-latest
25
- if: github.event.pull_request_target.base.ref != 'dev'
+ if: github.event.pull_request_target.base.ref == 'main'
26
steps:
27
- name: 评论
28
uses: thollander/actions-comment-pull-request@v3
29
with:
30
message: |
31
- ❤️ 感谢你的贡献!你的 PR 当前基于 ${{github.base_ref}} 分支,请修改使用 `dev` 分支!
+ ❤️ 感谢你的贡献!你的 PR 当前基于 ${{GITHUB_BASE_REF}} 分支,请修改使用 `dev` 分支!
32
comment-tag: "❤️ 感谢你的贡献!"
33
- run: |
34
- echo "::error::❌ PR 必须以 dev 分支为目标!当前是 ${GITHUB_BASE_REF}"
+ echo "::error::❌ PR 必须以非 `main` 分支为目标!当前是 ${GITHUB_BASE_REF} 分支"
35
exit 1
36
37
welcome:
0 commit comments