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

GitHub action for auto-updating GIT_TAG in readme #992

Merged
merged 2 commits into from
Dec 17, 2023
Merged

GitHub action for auto-updating GIT_TAG in readme #992

merged 2 commits into from
Dec 17, 2023

Conversation

andev0
Copy link
Contributor

@andev0 andev0 commented Dec 14, 2023

This workflow will be automatically launched on a published release.
It finds regex (GIT_TAG) [0-9a-f]+ in README.md and replaces the git tag with the one which is relevant for the created release.

So basically the workflow will do something like this:

-                          GIT_TAG 0817715923c9705e68994eb52ef9df3f6845beba)
+                          GIT_TAG 3b15fa82ea74739b574d705fea44959b58142eb8)

This way there will be no need to update the tag manually and therefore repository users will not have to additionally verify latest release tag.

I have also replaced current 0817715923c9705e68994eb52ef9df3f6845beba tag in readme with the most recent released 3b15fa82ea74739b574d705fea44959b58142eb8 so there is no need to create a new release once the changes are merged.

Note that the workflow uses third-party Action for committing changes: stefanzweifel/git-auto-commit-action@v5

Copy link
Member

@COM8 COM8 left a comment

Choose a reason for hiding this comment

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

@andev0 Thanks for contributing! This is definitely a welcome addition.
I left only a minor note.

README.md Outdated Show resolved Hide resolved
Co-authored-by: Fabian Sauter <sauter.fabian@mailbox.org>
Copy link
Member

@COM8 COM8 left a comment

Choose a reason for hiding this comment

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

Thanks!

@COM8 COM8 merged commit 561db4f into libcpr:master Dec 17, 2023
46 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants