Skip to content

Commit

Permalink
chore(CI): Use pr branch for checkout. (#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu authored Jul 18, 2023
1 parent 6d60b78 commit 0a3681d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/package_for_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,11 @@ jobs:
uses: actions/checkout@v3
if: ${{ github.event_name == 'push' }}

- name: Get PR Branch
if: github.event_name == 'issue_comment'
id: comment-branch
uses: yanguoyu/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout for PR
uses: actions/checkout@v3
if: ${{ github.event_name == 'issue_comment' }}
with:
repository: ${{ steps.comment-branch.outputs.head_owner }}/${{ steps.comment-branch.outputs.head_repo }}
ref: ${{ steps.comment-branch.outputs.head_ref }}
ref: refs/pull/${{ github.event.issue.number }}/merge

- name: Setup Node
uses: actions/setup-node@v3
Expand Down

1 comment on commit 0a3681d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 5589951776

Please sign in to comment.