Skip to content

Commit

Permalink
fix: make sure we're in the correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoro committed Nov 15, 2024
1 parent 1acdf5b commit a0ab4d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/index-collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Make sure the indexer is on the latest commit
- name: Make sure the indexer is on the latest ref of the PR branch
run: |
git fetch origin ${{ github.event.pull_request.head.ref }}:${{ github.event.pull_request.head.ref }}
git checkout ${{ github.event.pull_request.head.ref }}
- name: Skip if current commit is from the indexer
run: |
git log -1 --pretty=format:%ae ${{ github.event.after }} | grep -q "[email protected]"
if [ $? -eq 0 ]; then
echo "Last commit was from the indexer, skipping"
exit 78
fi
exit 0
- name: Get apt dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
Expand Down

0 comments on commit a0ab4d9

Please sign in to comment.