The merge commit is more suitable since it provides some context and groups up all the commits.
22 lines
504 B
YAML
22 lines
504 B
YAML
# This workflow will tag the merge commit when merging a PR into the master branch.
|
|
|
|
name: Bump version
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
fetch-depth: '0'
|
|
|
|
- name: Bump version and push tag
|
|
uses: anothrNick/github-tag-action@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
WITH_V: true |