diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index 819b3732..c07993f1 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -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: |