Skip to content

Commit

Permalink
ci: use pr head for build on label change
Browse files Browse the repository at this point in the history
  • Loading branch information
sdorra committed Sep 3, 2024
1 parent c5bdcc4 commit 426a6ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@ jobs:
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
- name: Check out code (push or pull_request)
if: github.event_name != 'pull_request_target'
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Check out code (label change)
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
fetch-depth: 2
ref: ${{ github.event.pull_request.head.sha }}

- uses: pnpm/action-setup@v3
with:
version: 8
Expand Down

0 comments on commit 426a6ac

Please sign in to comment.