Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
switch to gh pr checkout to check out the correct branch from a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Dec 11, 2023
1 parent 32abce9 commit 142477a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
id: comment-branch
uses: xt0rted/pull-request-comment-branch@v2
if: steps.trigger-deployment.outputs.triggered == 'true'
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Checkout PR branch
run: gh pr checkout $PR_NUMBER
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.issue.number }}
if: steps.trigger-deployment.outputs.triggered == 'true'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 142477a

Please sign in to comment.