Skip to content

Commit

Permalink
fix: Adjust checkout tasks (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
oZakari authored Oct 21, 2024
1 parent a44f39b commit eae55de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/validate-queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
ref: ${{ github.head_ref }}
ref: "refs/pull/${{ github.event.number }}/merge"
fetch-depth: 2

- name: Sanity Check
run: |
[[ "$(git rev-parse 'HEAD^2')" == "${{ github.event.pull_request.head.sha }}" ]]
- name: Azure login (OIDC)
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/validate-recommendations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:

- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
ref: ${{ github.head_ref }}

- name: Set up Python 3.x
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
Expand Down

0 comments on commit eae55de

Please sign in to comment.