[绕过检查] 添加来源分支检查

This commit is contained in:
Wenxuan Zhao
2023-02-17 15:31:37 +08:00
parent 654ea17fd3
commit c916fcb779

View File

@@ -12,6 +12,8 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: ensure source branch is not "master"
run: '[ "${{ github.head_ref }}" != master ]'
- name: "checkout master branch & return to pull request branch"
run: CURRENT=$(echo ${{github.ref}} | sed "s|refs/|refs/remotes/|") && git checkout master && git checkout $CURRENT
- name: run check