31 lines
752 B
YAML
31 lines
752 B
YAML
name: Pat Bump Tag
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
# Accessing the context for Github
|
|
if: ${{ github.event.pull_request.merged == true }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
|
fetch-depth: '0'
|
|
|
|
- name: Bump version and push tag
|
|
id: tag
|
|
uses: mathieudutour/github-tag-action@v6.2
|
|
with:
|
|
github_token: ${{ secrets.REGISTRY_TOKEN }}
|
|
release_branches: main
|
|
default_bump: minor # major, minor, or patch
|
|
tag_prefix: v
|
|
|
|
- name: Show new tag
|
|
run: echo "New tag is ${{ steps.tag.outputs.new_tag }}" |