Skip to content

Commit

Permalink
chore: Or else ...
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe committed Sep 29, 2024
1 parent b0f8914 commit c39968f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ jobs:
exit 0
elif [[ "$GH_EVENT_NAME" == "push" ]]; then
LATEST_TAG=$(git describe --tags --abbrev=0)
if ! [[ git --no-pager log $LATEST_TAG..head --pretty=format:"%s" | grep -v "^chore" ]]; then
if [[ git --no-pager log $LATEST_TAG..head --pretty=format:"%s" | grep -v "^chore" ]]; then
echo "Push to main, but there are only chore commits since last tag."
echo "Not expecting a new release branch";
else
echo "Found non-chore commits on main since last commit; leave unchanged"
echo "(Expecting release-plz to create a new release branch)"
echo "base-commit=skip" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit c39968f

Please sign in to comment.