Skip to content

Commit 6fe886e

Browse files
Merge pull request #9 from fac/devp/fix-pre-release-handling
Version 2.2.0
2 parents 5da31dd + 32b2d5a commit 6fe886e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
TODO: v2 changes
44

55
## [Unreleased]
6+
## [2.2.0] - 2021-04-30
7+
8+
- Fix: Bug with pre-release:false input getting ignored
69

710
## [2.1.0] - 2021-04-30
811

gem-push-action

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ GEM_FILE="$1"
4040
push_host="$(parse-gemspec --push-host)"
4141
GEM_HOST="${GEM_HOST:-$push_host}"
4242

43-
if parse-gemspec --is-pre-release && [[ $PRE_RELEASE != true ]];
44-
then
43+
if parse-gemspec --is-pre-release; then
44+
if [[ $PRE_RELEASE != true ]]; then
4545
echo "Ignoring pre-release. To release, pass pre-release: true as an input"
4646
exit 0
47+
fi
48+
else # normal release
49+
if [[ $PRE_RELEASE == true ]]; then
50+
echo "Ignoring release. To release, pass pre-release: false as an input"
51+
exit 0
52+
fi
4753
fi
4854

4955
# Capture as we can't tell why gem push failed from the exit code and it logs

0 commit comments

Comments
 (0)