-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip release] Move skip release logic to shell scripts (#37)
Signed-off-by: Anton Wilhelm <[email protected]>
- Loading branch information
1 parent
ad91aca
commit d55d121
Showing
3 changed files
with
10 additions
and
9 deletions.
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
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
if [[ $(git log -1 --pretty=format:"%s") =~ "[skip release]" ]]; then | ||
echo 'Stopping the script because [skip release] was found in commit message' | ||
exit 0 | ||
fi | ||
|
||
# Prepare release | ||
git config user.name "GitHub Action" | ||
git config user.email "[email protected]" | ||
|
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