Skip to content

Commit

Permalink
chore: checkout the pull request head commit instead of merge commit …
Browse files Browse the repository at this point in the history
…in GHAs (#141)
  • Loading branch information
sandeepdsvs authored May 27, 2024
1 parent 740bf07 commit decbd40
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Login to DockerHub
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-pr-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

# Replace problematic characters in branch name (like '/') with safe characters (like '.')
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Setup Node
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Setup Node
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Get image version
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Setup Node
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Setup Node
Expand Down

0 comments on commit decbd40

Please sign in to comment.