Skip to content

Monthly release

Monthly release #11

name: Monthly release
on:
schedule:
- cron: "0 0 1 * *"
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Get tag name
id: tag_name
run: echo "tag_name=$(date +'%Y.%m')" >> "$GITHUB_ENV"
- name: log tag name
run: echo ${{ env.tag_name }}
- uses: octokit/[email protected]
id: create_release
with:
route: POST /repos/{owner}/{repo}/releases
owner: dodona-edu
repo: dodona
tag_name: "'${{ env.tag_name }}'"
name: "'${{ env.tag_name }}'"
discussion_category_name: "Release notes"
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}