Skip to content

Commit

Permalink
fix: skip commit check
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoro committed Nov 15, 2024
1 parent a0ab4d9 commit 3ab6697
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/index-collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ jobs:
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
# set -x flag in bash to print the commands being run

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
echo $?
# 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 3ab6697

Please sign in to comment.