Skip to content

Commit c112604

Browse files
committed
Review
1 parent 5a8c475 commit c112604

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ Build and push all new version of the gem:
3333
key: github
3434
```
3535
36-
Note, that the ruby-gem-push-action, will push to the host given in the gemspec. The token needs to match. Trying to push to a different host will fail.
36+
Note that the ruby-gem-push-action will push to the host given in the gemspec. The token needs to match. Trying to push to a different host will fail.
3737
3838
### Separate release and pre-release workflow
3939
40-
41-
By the default, the action releases, (er!) release versions, that is, non pre-release versions, those are skipped over with a message. Setting the input `pre-release: true`, reverses that, releasing new pre-release versions and skipping over live releases. That way, you can have 2 calls to the action, using the workflow to decide the logic.
40+
By default, the action only acts on non-pre-release versions, and prints a message if it thinks the gem has a pre-release version number. If you set the input option `pre-release: true`, then it will only act on pre-release versions, and will skip over regular versions. That way, you can have 2 calls to the action, using the workflow to decide the logic.
4241

4342
Say you want to push release versions from your default branch (main) and pre-release versions from PR builds:
4443

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: FreeAgent
44
description: Push gem packages to a rubygems compatible repository
55
inputs:
66
key:
7-
description: "Name of credentials key to use from ~/.gem/credentials. Use github for gh packages."
7+
description: "Name of credentials key to use from ~/.gem/credentials."
88
default: ""
99
gem-glob:
1010
description: File glob to match the .gem files to push
@@ -29,5 +29,5 @@ runs:
2929
run: |
3030
PATH="${{ github.action_path }}:$PATH"
3131
args=""
32-
'${{ inputs.tag }}' && args="$args -t"
32+
[ '${{ inputs.tag }}' == true ] && args="$args -t"
3333
gem-push-action -k "${{inputs.key}}" $args ${{inputs.gem-glob}}

0 commit comments

Comments
 (0)