Workflow: tag and create release
Prepare release for chill app / update-deps (push) Failing after 23s Details
Tag next release / tag_if_merged (pull_request) Failing after 0s Details

This commit is contained in:
Julien Fastré 2023-11-19 21:35:48 +01:00
parent e50b764d85
commit ecdfc7445e
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,19 @@
name: Create release
run-name: Create release on tag
permissions:
contents: write
on:
push:
tags:
- v*
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: release
uses: https://github.com/softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}/.changes/v${{ github.ref }}.md

View File

@ -0,0 +1,25 @@
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 and startsWith(github.head_ref, 'release/')
runs-on: ubuntu-latest
steps:
- 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 }}