Fix tagging 2 (#109)
Fixing the tagging so that merges into main automatically create a new tag of the correct version
This commit is contained in:
committed by
GitHub
parent
3b52f7177a
commit
c362aa0cd6
7
.github/workflows/tags.yaml
vendored
7
.github/workflows/tags.yaml
vendored
@@ -1,22 +1,19 @@
|
||||
name: Tag + Bump version
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-22.04
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
||||
fetch-depth: '0'
|
||||
|
||||
- name: Bump version and push tag
|
||||
uses: anothrNick/github-tag-action@1.64.0
|
||||
uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version
|
||||
env:
|
||||
DEFAULT_BUMP: patch
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user