-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow overwrite and ref targets. Adds more functionality / flexibility to action #14
base: main
Are you sure you want to change the base?
Conversation
remove runs-on param
| `tag` | A Git tag name. | `string` | `true` | `N/A` | | ||
| `message` | A message for the Git tag. | `string` | `false` | `''` | | ||
| `ref` | Commit SHA or tag to target. | `string` | `false` | `''` | | ||
| `force` | A message for the Git tag. | `boolean`| `false` | `false` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix desciption of the force
paramater
| `message` | A message for the Git tag. | `string` | `false` | `''` | | ||
| `ref` | Commit SHA or tag to target. | `string` | `false` | `''` | | ||
| `force` | A message for the Git tag. | `boolean`| `false` | `false` | | ||
| `always-pass`| If step should pass if tag push fails | `boolean`| `false` | `false` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
always-pass
sounds weird. ignore-failures
maybe? Or always-succeed
?
@@ -34,13 +37,13 @@ jobs: | |||
- uses: actions-ecosystem/action-get-latest-tag@v1 | |||
id: get-latest-tag | |||
|
|||
- uses: actions-ecosystem/action-bump-semver@v1 | |||
- uses: thejeff77/action-bump-semver@v1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use actions-ecosystem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 about use of actions-ecosystem
If you do a PR to original repo it should stay as is. In your own repo feel free to override it.
id: bump-semver | ||
with: | ||
current_version: ${{ steps.get-latest-tag.outputs.tag }} | ||
level: minor | ||
|
||
- uses: actions-ecosystem/action-push-tag@v1 | ||
- uses: thejeff77/action-push-tag@v1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use actions-ecosystem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. +1 about use of actions-ecosystem
name: Push Any Git Tag | ||
description: based on Actions Ecosystem Push Tag - Fixed with additional features. | ||
author: Actions Ecosystem & theJeff77 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't change these. Nor do you need to put your name in as the author just because you PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
using: "composite" | ||
steps: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this is an unnecessary over reach on this PR. Just leave it in the Dockerfile and make your changes in the entrypoint.sh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not the owner of this repo, but I am interested in your PR so I gave it a review.
@micnncim This would be a nice addition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Don't replace owner's info like action name, desc, author
- Fix description of the
force
parameter - Add examples for the new parameters
@@ -34,13 +37,13 @@ jobs: | |||
- uses: actions-ecosystem/action-get-latest-tag@v1 | |||
id: get-latest-tag | |||
|
|||
- uses: actions-ecosystem/action-bump-semver@v1 | |||
- uses: thejeff77/action-bump-semver@v1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 about use of actions-ecosystem
If you do a PR to original repo it should stay as is. In your own repo feel free to override it.
id: bump-semver | ||
with: | ||
current_version: ${{ steps.get-latest-tag.outputs.tag }} | ||
level: minor | ||
|
||
- uses: actions-ecosystem/action-push-tag@v1 | ||
- uses: thejeff77/action-push-tag@v1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. +1 about use of actions-ecosystem
| `tag` | A Git tag name. | `string` | `true` | `N/A` | | ||
| `message` | A message for the Git tag. | `string` | `false` | `''` | | ||
| `ref` | Commit SHA or tag to target. | `string` | `false` | `''` | | ||
| `force` | A message for the Git tag. | `boolean`| `false` | `false` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix desciption of the force
paramater
| ------------ | -------------------------------------- | -------- | -------- | ------- | | ||
| `tag` | A Git tag name. | `string` | `true` | `N/A` | | ||
| `message` | A message for the Git tag. | `string` | `false` | `''` | | ||
| `ref` | Commit SHA or tag to target. | `string` | `false` | `''` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be nice to update example in the README.MD with an real case where you use all the new parameters.
For example: it's not clear if the force
parameter is analog of git force or it's something else. And why would I need a ref
name: Push Any Git Tag | ||
description: based on Actions Ecosystem Push Tag - Fixed with additional features. | ||
author: Actions Ecosystem & theJeff77 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
type: string | ||
required: false | ||
force: | ||
description: Whether or not to force push (overwrite) the tag if it already exists. Useful for walking tags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This descriptions are not available for me when I read the docs or trying to see it will work for me
What this PR does / Why we need it
Adds two new optional variables:
Which issue(s) this PR fixes
Fixes #
#13
#12