Skip to content

Renovate: python-jsonschema/check-jsonschema to v0.27.1 #61

Renovate: python-jsonschema/check-jsonschema to v0.27.1

Renovate: python-jsonschema/check-jsonschema to v0.27.1 #61

Workflow file for this run

name: Bump Version Tag
on:
push:
branches:
- main
paths:
- "**/*"
- "!.github/**"
- "!.gitignore"
- "!.pre-commit-config.yaml"
- "!**/*.json5"
- "!**/*.md"
- "!pyproject.toml"
workflow_dispatch:
jobs:
tags:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: bump-version
uses: anothrNick/github-tag-action@a2c70ae13a881faf2b4953baaa9e49731997ab36 # 1.67.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
- name: Extract major tag
id: extract-major
run: >-
echo major_tag=$(echo ${{ steps.bump-version.outputs.new_tag }} |
cut -d'.' -f1) >> $GITHUB_OUTPUT
# this is done manually as need a non-annotated tag
# TODO: replace with https://github.com/actions/publish-action
- name: Update major tag
run: |-
git config user.name github-actions
git config user.email [email protected]
git tag --force ${{ steps.extract-major.outputs.major_tag }} \
${{ steps.bump-version.outputs.new_tag }}
git push origin ${{ steps.extract-major.outputs.major_tag }} --force