Skip to content

Monthly Release

Monthly Release #7

Workflow file for this run

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}}