-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make sure we're in the correct branch
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|