This action automatically bumps your project version based on commit messages.
- Fetch Tags: Retrieves all git tags.
- Determine Version: Finds the latest version in
X.Yformat. - Check Commits: Looks for
#majorin commit messages to decide on a major or minor bump. - Tag & Push: Creates and pushes a new tag.
Include this step in your GitHub Actions workflow:
- uses: actions/checkout@v3
- name: Bump Version
uses: ./path-to-your-action
with:
github_token: ${{ secrets.GITHUB_TOKEN }}Replace ./path-to-your-action with your action's path or repository.