-
Notifications
You must be signed in to change notification settings - Fork 517
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
New boolean input tag_with_latest #43
Comments
I think this also fixes #40, since we'd be able to define custom conditions for pushing Something like: tag_with_latest: ${{ github.ref == 'refs/heads/develop' && github.event_name == 'push' }} |
I usually publish bleeding-edge changes of the
|
@ibnesayeed yeah, this is also my intended behavior that will be possible with this feature suggestion. # Use the following if you just push as latest when push git tags
tag_with_latest: ${{ startsWith(github.ref, 'refs/tags/') }} |
Ok, I wrongly thought there was a boolean input called |
latest
property must take precendence over tag_with_ref
Great workflow suggestion. However isn't this solvable outside this extension? Simply don't run the action unless there is a tag set. |
Right, but what to do if we want to run the action in both cases, but only push as latest when is a tag? Without this feature, we would at least have to create 2 (and mainly duplicated) different jobs. |
I like the idea, personally I was surprised to see that master will also be tagged as latest. As a workaround I have two separate docker steps. One for the regular CI jobs:
And one for releases:
|
New boolean input
tag_with_latest
It would add the ability for users to better set when to push as
latest
, such as evaluating an expression for example.Example: tag as
latest
when push git tagsUsage with
tag_with_ref
If
tag_with_latest
property is defined alongsidetag_with_ref
, then the strategy of push as latest when the branch is master fromtag_with_ref
should be ignored.The text was updated successfully, but these errors were encountered: