Skip to content

Commit

Permalink
Fix build job to support both local and forked prs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Apr 3, 2024
1 parent 52dfc78 commit a4b1fee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Checkout current repo head to support automated local PRs
if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
fetch-depth: 2

- name: Checkout default if not current repo
if: github.event.pull_request.head.repo.full_name != github.repository
uses: actions/[email protected]

- id: check_label
name: Check PL labels
uses: docker://agilepathway/pull-request-label-checker:v1.6.21
Expand Down

0 comments on commit a4b1fee

Please sign in to comment.