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

IDP-2284 Use github action to increment tag versions on merge #33

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

starcraft66
Copy link
Member

Makes use of https://github.com/marketplace/actions/github-tag-bump.

The strategy replicates what we have on ADO: automatically increment patch numbers.

We can instruct the workflow to increment minor or major versions in the merge commit message.

@starcraft66 starcraft66 requested review from a team as code owners September 27, 2024 14:15
@starcraft66 starcraft66 marked this pull request as draft September 27, 2024 14:15
@starcraft66 starcraft66 marked this pull request as ready for review September 27, 2024 14:18
@starcraft66 starcraft66 merged commit 145c263 into main Sep 27, 2024
2 checks passed
@starcraft66 starcraft66 deleted the feature/tgh/idp-2284 branch September 27, 2024 14:23
git tag -a ${buildVersion} -m "${{ env.SOURCE_VERSION_MESSAGE }}"
git push origin --tags
- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1 # Don't use @master or @v1 unless you're happy to test the latest version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with this comment? Should we use a sha digest instead? Or a more specific version like the current @v1.71.0 (is it even possible? I never tried a full tag before)?

Should Renovate update this non-official/well-known/trusted action? Two years ago, our security department asked to pin the digest of actions. I don't know if it still applies today.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I copy/pasted this comment from the upstream page of the github action. I will go perform these changes in a new PR.

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

Successfully merging this pull request may close these issues.

3 participants