Skip to content

Commit

Permalink
ci: checkout PR with git commands [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Dec 17, 2023
1 parent 40c487f commit 0d7ded3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/stable-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ jobs:
ref: ${{ env.GITHUB_BRANCH }}

- name: Checkout PR
uses: dawidd6/action-checkout-pr@v1
with:
pr: ${{ github.event.inputs.checkout_pr }}
env:
PR_ID: ${{ github.event.inputs.checkout_pr }}
run: |
git fetch origin pull/$PR_ID/head
git checkout FETCH_HEAD
if: github.event.inputs.checkout_pr != ''

- name: Clone VSCode repo
Expand Down

0 comments on commit 0d7ded3

Please sign in to comment.