From 444160f007e4b5834df9a51afe075ef405c569d4 Mon Sep 17 00:00:00 2001 From: Tulip Blossom Date: Thu, 26 Dec 2024 21:15:29 -0300 Subject: [PATCH] fix: cron rules for changelog + fix path for binary Should fix the broken path for the action :p and adds default values for the inputs so that we dont need to manually release --- .github/workflows/generate-changelog-release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-changelog-release.yml b/.github/workflows/generate-changelog-release.yml index f4f61f1..ce7bab7 100644 --- a/.github/workflows/generate-changelog-release.yml +++ b/.github/workflows/generate-changelog-release.yml @@ -1,17 +1,21 @@ on: + schedule: + - cron: '05 11 * * *' # 11:05am UTC everyday workflow_call: inputs: stream_name: description: "Release Tag (e.g. stream10, latest)" type: string - required: true + default: "latest" + required: false workflow_dispatch: inputs: handwritten: description: "Small Changelog about changes in this build" stream_name: description: "Release Tag (e.g. gts, stable)" - required: true + required: false + default: '["latest"]' type: choice options: - '["stream10"]' @@ -40,7 +44,7 @@ jobs: id: generate-release-text shell: bash run: | - python3 changelogs.py --workdir . "${{ matrix.version }}" ./output.env ./changelog.md --handwritten "${{ inputs.handwritten }}" + python3 .github/changelogs.py --workdir . "${{ matrix.version }}" ./output.env ./changelog.md --handwritten "${{ inputs.handwritten }}" source ./output.env echo "title=${TITLE}" >> $GITHUB_OUTPUT echo "tag=${TAG}" >> $GITHUB_OUTPUT