Bump version to 1.24.5 #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: '📌 Auto Tag on Master' | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- '.gitignore' | |
- '.github/**' | |
- '*.md' | |
- '.vscode/**' | |
jobs: | |
auto-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get manifest version | |
id: manifest_version | |
run: | | |
version=$(jq -r .version public/base.manifest.json) | |
echo "version=$version" >> $GITHUB_OUTPUT | |
- name: Bump version and push tag | |
id: tag_version | |
uses: anothrNick/github-tag-action@1.67.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
INITIAL_VERSION: ${{ steps.manifest_version.outputs.version }} | |
RELEASE_BRANCHES: ^(master|main)$ | |
DEFAULT_BUMP: patch | |
- name: Update manifest version | |
run: | | |
new_version=$(echo "${{ steps.tag_version.outputs.new_tag }}" | sed 's/^v//') | |
jq --arg version "$new_version" '.version = $version' public/base.manifest.json > public/base.manifest.json.tmp && mv public/base.manifest.json.tmp public/base.manifest.json | |
- name: Commit manifest changes | |
uses: stefanzweifel/git-auto-commit-action@v6 | |
with: | |
commit_message: "ci: Bump manifest version to ${{ steps.tag_version.outputs.new_tag }}" | |
file_pattern: public/base.manifest.json |