Created
July 2, 2020 13:48
-
-
Save typeoneerror/13be540e232adcadf2b471dc9d81b3ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# This works for PUSH but not PULL_REQUEST | |
if: "!contains(github.event.head_commit.message, '[skipci]')" | |
# So down here in the STEP, grab the commit message via git log | |
# But now how do I EXIT the workflow?? | |
- name: Skip if commit contains skipci | |
run: | | |
commitmsg=$(git log --format=%B -n 1 ${{ github.event.after }}) | |
if [[ $commitmsg =~ \[skipci\] ]]; then | |
echo "::debug::Skipping run because commit contained [skipci]" | |
# FIXME: Kill job? | |
echo "exit" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment