chore: Optimized prerelease workflow

This commit is contained in:
Dennis Ploeger
2021-11-21 22:50:16 +01:00
parent b550922b7b
commit f7c0bf2224

View File

@@ -34,12 +34,12 @@ jobs:
CHANGELOG=$(cat CHANGELOG.md)
fi
echo -e "${{steps.calculate_version.outputs.changelog}}\n\n${CHANGELOG}" > CHANGELOG.md
# - name: "Commit"
# if: "steps.calculate_version.outputs.changelog != ''"
# uses: EndBug/add-and-commit@v7.2.1
# with:
# message: "chore: storing version and changelog"
# push: true
- name: "Commit"
if: "steps.calculate_version.outputs.changelog != ''"
uses: EndBug/add-and-commit@v7.2.1
with:
message: "chore: storing version and changelog"
push: true
release:
if: "github.event.head_commit.message == 'chore: storing version and changelog'"
name: Release