Skip to content
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

Add support for updating tags #56

Open
smokedlinq opened this issue Aug 25, 2022 · 0 comments
Open

Add support for updating tags #56

smokedlinq opened this issue Aug 25, 2022 · 0 comments

Comments

@smokedlinq
Copy link

smokedlinq commented Aug 25, 2022

I am trying to use this to get the GitHub Actions practice of tags for versioning, e.g. release vX.Y.Z but also create/update the vX.Y and vX tags. Right now when it tries to update the tag it returns the error: 422 Reference already exists. It also looks like it is not respecting the tag_format for the minor and major steps.

Example workflow:

steps:
- id: patch
  uses: k-phoen/[email protected] 
  with:
    release_branch: main
    release_strategy: release
    tag_format: v%major%.%minor%.%patch%
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- id: minor
  uses: k-phoen/[email protected] 
  with:
    release_branch: main
    release_strategy: none
    tag_format: v%major%.%minor%
    tag: ${{ steps.patch.outputs.tag }}
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- id: major
  uses: k-phoen/[email protected] 
  with:
    release_branch: main
    release_strategy: none
    tag_format: v%major%
    tag: ${{ steps.patch.outputs.tag }}
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant