-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from timmyb824/ci/ci-add-conditional
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 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 |
---|---|---|
|
@@ -102,6 +102,11 @@ jobs: | |
git config user.name github-actions | ||
git config user.email [email protected] | ||
poetry run semantic-release version | ||
delimiter="$(openssl rand -hex 8)" | ||
POETRY_VERSION=$(poetry run semantic-release version) | ||
echo "version-output<<${delimiter}" >> "${GITHUB_OUTPUT}" | ||
echo "${POETRY_VERSION}" >> "${GITHUB_OUTPUT}" | ||
echo "${delimiter}" >> "${GITHUB_OUTPUT}" | ||
poetry run semantic-release changelog | ||
poetry run semantic-release publish | ||
|
@@ -112,6 +117,12 @@ jobs: | |
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check release output and terminate if no new version | ||
if: contains(steps.package_release.outputs.version-output, 'No release will be made,') && contains(steps.package_release.outputs.version-output, 'has already been released!') | ||
run: | | ||
echo "No new version to release. Ending workflow." | ||
exit 0 | ||
- name: Publish to TestPyPI | ||
id: test_publish | ||
if: steps.package_release.outcome == 'success' | ||
|