-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4228ad6
commit af89051
Showing
1 changed file
with
8 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,11 @@ jobs: | |
echo "IS_VALID=true" >> $GITHUB_ENV | ||
fi | ||
- name: Debug | ||
run: | | ||
echo "IS_VALID: $IS_VALID" | ||
echo "Version: $VERSION" | ||
- name: Update version in bt_ifcmanager.rb | ||
if: env.IS_VALID == 'true' | ||
run: | | ||
|
@@ -37,11 +42,7 @@ jobs: | |
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
if ! git diff --quiet; then | ||
git commit -am "Commit message" | ||
else | ||
echo "No changes to commit" | ||
fi | ||
git commit -m "Update version to $VERSION" -a | ||
- name: Push changes | ||
if: env.IS_VALID == 'true' | ||
|
@@ -58,11 +59,12 @@ jobs: | |
if: env.IS_VALID == 'true' | ||
id: generate_notes | ||
run: | | ||
VERSION=$VERSION | ||
PREVIOUS_TAG=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`) | ||
RELEASE_NOTES=$(git log --pretty=format:"- %s" $PREVIOUS_TAG..HEAD) | ||
if [[ -z "$RELEASE_NOTES" ]]; then | ||
RELEASE_NOTES="No changes since the last release." | ||
else | ||
RELEASE_NOTES="Release version $VERSION:\n$RELEASE_NOTES" | ||
fi | ||
echo "RELEASE_NOTES=$RELEASE_NOTES" >> $GITHUB_ENV | ||
|