Skip to content

Commit

Permalink
chore: Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe committed Sep 29, 2024
1 parent f27dd7c commit 9ede67a
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,18 @@ jobs:
elif [[ "$GH_EVENT_NAME" == "push" ]]; then
LATEST_TAG=$(git describe --tags --abbrev=0)
echo --- DEBUG
echo Looking for non-chore commits since last tag
echo
echo LATEST_TAG=$LATEST_TAG
echo
echo --- git log ---
git --no-pager log --pretty=format:"%s" $LATEST_TAG..HEAD
echo
echo --- git log + grep ---
git --no-pager log --pretty=format:"%s" $LATEST_TAG..HEAD | grep -v "^chore"
echo EXIT STATUS $?
echo --- END DEBUG ---
git --no-pager log --pretty=format:"%s" $LATEST_TAG..HEAD | grep -v "^chore"
if [ $? -eq 0 ]; then
echo "Found non-chore commits on main since last commit; leave unchanged"
echo "(Expecting release-plz to create a new release branch)"
echo
echo "Found non-chore commits; expecting release-plz to create a new release branch."
echo "base-commit=skip" >> "$GITHUB_OUTPUT"
exit 0
else
echo "Push to main, but there are only chore commits since last tag."
echo "Not expecting a new release branch";
echo "Not expecting a new release branch"
echo;
fi
fi
Expand Down

0 comments on commit 9ede67a

Please sign in to comment.