Skip to content

Release Version

Release Version #276

Workflow file for this run

name: Bump version
on:
workflow_run:
workflows: ["Compile test"]
branches: [master]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Generate changelog
id: changelog
uses: TriPSs/[email protected]
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/[email protected]
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/[email protected]
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"}'