chill-skeleton-basic/.gitea/workflows/release/tag-when-pr-merged-from-branch-release.yaml
Julien Fastré 9949393d7b
Some checks failed
Prepare release for chill app / update-deps (push) Successful in 23s
Tag next release / tag_if_merged (pull_request) Failing after 21s
checkout before
2023-11-19 21:44:11 +01:00

28 lines
872 B
YAML

name: Tag next release
run-name: Create a tag when PR is merged
on:
pull_request_target:
types:
- closed
branches:
- 'main'
jobs:
tag_if_merged:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')
runs-on: ubuntu-latest
steps:
- name: check out repository
uses: https://github.com/actions/checkout@v4
- name: changie latest
id: changie_latest
uses: https://github.com/miniscruff/changie-action@v2
with:
version: latest
args: 'latest'
- name: create a tag
uses: https://github.com/rickstaa/action-create-tag@v1
with:
tag: ${{ steps.changie_latest.outputs.output }}