diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml index 068bfc2..af8db27 100644 --- a/.github/workflows/release-new-version.yml +++ b/.github/workflows/release-new-version.yml @@ -56,11 +56,8 @@ jobs: # Only consider tags on current branch when setting PREVIOUS_TAG run: | PREVIOUS_TAG="$(git tag --sort='version:refname' --merged | tail --lines 1)" - if [[ "$(cog bump --auto --dry-run)" == *"No conventional commits for your repository that required a bump"* ]]; then - NEW_TAG="$(cog bump --patch --dry-run)" - else - NEW_TAG="$(cog bump --auto --dry-run)" - fi + + cog bump --auto --dry-run echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV echo "PREVIOUS_TAG=${PREVIOUS_TAG}" >> $GITHUB_ENV diff --git a/src/main.rs b/src/main.rs index d2c762f..5e3ffe6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1599,5 +1599,6 @@ #[allow(dead_code)] enum PaymentMethod { Card, + PayLater, } fn main() {}