Skip to content

Commit

Permalink
chore: fetch and checkout the pull request head commit instead of mer…
Browse files Browse the repository at this point in the history
…ge commit (#3388)
  • Loading branch information
sandeepdsvs authored May 21, 2024
1 parent b9ef30a commit ffd4958
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Setup Docker Buildx
Expand Down Expand Up @@ -88,6 +89,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Setup Docker Buildx
Expand Down

0 comments on commit ffd4958

Please sign in to comment.