Monthly Release #7
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: Monthly Release | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' # Trigger the workflow every month | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Bump version and push tag | |
id: create_tag | |
uses: anothrNick/github-tag-action@1.61.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: minor | |
- name: Build Changelog | |
uses: mikepenz/release-changelog-builder-action@v3 | |
with: | |
configurationJson: | | |
{ | |
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>", | |
"categories": [ | |
{ | |
"title": "## π Documentation", | |
"labels": ["documentation"] | |
}, | |
{ | |
"title": "## π Enhancement", | |
"labels": ["enhancement"] | |
}, | |
{ | |
"title": "## π Bug", | |
"labels": ["bug"] | |
}, | |
{ | |
"title": "## π£οΈ Translation", | |
"labels": ["translation"] | |
}, | |
{ | |
"title": "## π¬ Other", | |
"labels": ["other"] | |
}, | |
{ | |
"title": "## π¦ Dependencies", | |
"labels": ["dependencies"] | |
} | |
] | |
} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ steps.create_tag.outputs.new_tag }} | |
release_name: Release ${{ steps.create_tag.outputs.new_tag }} | |
body: ${{steps.github_release.outputs.changelog}} |