https://github.com/david-lor/github-actions-pr-tag-release
Example repository with Github Actions that create a tag when a Release PR is merged, and generate a release from it
https://github.com/david-lor/github-actions-pr-tag-release
Last synced: 10 months ago
JSON representation
Example repository with Github Actions that create a tag when a Release PR is merged, and generate a release from it
- Host: GitHub
- URL: https://github.com/david-lor/github-actions-pr-tag-release
- Owner: David-Lor
- Created: 2021-08-20T09:37:09.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2023-10-10T14:09:10.000Z (over 2 years ago)
- Last Synced: 2025-02-03T23:56:06.327Z (11 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Github-Actions-PR-Tag-Release
Example repository with GitHub Actions Workflows that create a new version tag when a Release PR is merged, and create a new release from it.
## How it works
- Our repository uses main-develop branching:
- New features, fixes and other incorporations are commited to the develop branch.
- When a new version is ready to be released, a "develop to main" Pull Request must be created, whose description contains a line like "Tags x.y.z", being "x.y.z" the new version that will be released.
- Merging a pull request triggers the ["Tag" Workflow](.github/workflows/tag.yaml) which analyzes the closed-merged PR and, if it contains the described line in the PR description,
extracts the version specified and creates a new tag on the repository, over the merge commit.
The ["Tag on PR merge" Action](https://github.com/David-Lor/action-tag-on-pr-merge/actions) is used for detecting and pushing the new tag.
- Creating a new tag triggers the ["Release" Workflow](.github/workflows/release.yaml) which generates a new Release on the Repository. This second Workflow could also be used for building and publishing packages, Docker images, and so on.