Skip to content

Commit

Permalink
separate out pulling for pull requests and pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Oct 29, 2024
1 parent 8e15968 commit 8a9eeda
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-images-from-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ jobs:
ref: '${{ github.event.inputs.branch_name }}'

- uses: actions/checkout@v4
if: github.event_name == 'push' || github.event_name == 'pull_request'
if: github.event_name == 'push'
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Set version and branch
Expand Down

0 comments on commit 8a9eeda

Please sign in to comment.