Release Version #276
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}' |