Skip to content

Commit c091823

Browse files
author
Mikachu2333
committed
try
1 parent 805234a commit c091823

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/PR-notify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ jobs:
2222
enforce-dev-branch:
2323
name: 强制使用dev分支
2424
runs-on: ubuntu-latest
25-
if: github.event.pull_request_target.base.ref != 'dev'
25+
if: github.event.pull_request_target.base.ref == 'main'
2626
steps:
2727
- name: 评论
2828
uses: thollander/actions-comment-pull-request@v3
2929
with:
3030
message: |
31-
❤️ 感谢你的贡献!你的 PR 当前基于 ${{github.base_ref}} 分支,请修改使用 `dev` 分支!
31+
❤️ 感谢你的贡献!你的 PR 当前基于 ${{GITHUB_BASE_REF}} 分支,请修改使用 `dev` 分支!
3232
comment-tag: "❤️ 感谢你的贡献!"
3333
- run: |
34-
echo "::error::❌ PR 必须以 dev 分支为目标!当前是 ${GITHUB_BASE_REF}"
34+
echo "::error::❌ PR 必须以非 `main` 分支为目标!当前是 ${GITHUB_BASE_REF} 分支"
3535
exit 1
3636
3737
welcome:

0 commit comments

Comments
 (0)