Skip to content

Commit

Permalink
feat: check email
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoro committed Nov 15, 2024
1 parent 3ab6697 commit b854af1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/index-collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ jobs:
# 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]"
echo $?
# if [ $? -eq 0 ]; then
# echo "Last commit was from the indexer, skipping"
# exit 78
# fi
# exit 0
LAST_EMAIL=$(git log -1 --pretty=format:%ae)
if [ "$LAST_EMAIL" = "[email protected]" ]; then
echo "Last commit was from the indexer, skipping"
exit 78
fi
- name: Get apt dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
Expand Down

0 comments on commit b854af1

Please sign in to comment.