test: 错误的逻辑

This commit is contained in:
Junyan Qin
2023-12-27 15:44:24 +00:00
parent 06f3c5d32b
commit af225aa18f

View File

@@ -63,10 +63,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set PR source branch as env variable
if: github.event_name != 'issue_comment'
if: github.event_name == 'issue_comment'
run: |
PR_SOURCE_BRANCH=$(echo ${{ steps.get-pr.outputs.data }} | jq -r '.head.ref')
echo "BRANCH=$PR_SOURCE_BRANCH" >> $GITHUB_ENV
- name: Set PR Branch as bash env
if: github.event_name != 'issue_comment'
run: |