Skip to content

Release Version

Release Version #680

Workflow file for this run

name: Release Version
on:
workflow_run:
workflows: ["Compile Test"]
branches: [master]
types:
- completed
jobs:
version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3.18.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-message: "chore(release): {version}"
preset: "angular"
tag-prefix: "v"
output-file: "CHANGELOG.md"
skip-version-file: "true"
skip-on-empty: "true"
skip-commit: "false"
- name: Create release
uses: actions/create-release@v1.1.4
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
- name: Discord notification
uses: rguillaume/discord-action-embed@v1.0.4
with:
webhook: ${{ secrets.UPDATES_WEBHOOK }}
embed: '{"title": "Update: ${{ github.event.repository.name }}", "description": ${{ toJSON(github.event.workflow_run.head_commit.message) }}, "url": "${{ github.event.workflow_run.repository.html_url }}/commit/${{ github.event.workflow_run.head_commit.id }}", "footer": {"text": "Committer: ${{ github.event.workflow_run.head_commit.author.name }}"}, "color": "16776960"}'