Skip to content

Release Generator

Release Generator #74

name: Release Generator
on:
workflow_run:
workflows: ["Release"]
types:
- completed
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: Release
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Getting Tag
id: tag_extractor
run: echo "latest_tag=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"
- uses: ncipollo/release-action@v1
with:
name: GPT Computer Assistant ${{ steps.tag_extractor.outputs.latest_tag }}
generateReleaseNotes: true
tag: ${{ steps.tag_extractor.outputs.latest_tag }}