From 191ba2b20d376c6cece34f85d65f03710cd014df Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Wed, 1 Jan 2025 00:20:05 +0000 Subject: [PATCH] chore(ci): allow manual trigger via issue --- .gitea/workflows/release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e5b6fc4..b892d45 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -2,14 +2,25 @@ name: Release on: schedule: - cron: "0 9 * * 0" - - cron: "0 0 * * *" # Testing + issue_comment: + types: [created] jobs: + check_manual_trigger: + runs-on: ubuntu-latest + if: contains(gitea.event.issue.number, '436') || contains(gitea.event.issue.number, 436) # check if the comments come from issue #436 + steps: + - name: Allow workflow + if: contains(gitea.event.comment.body, '/trigger-release') && contains(gitea.event.comment.user.login, 'luke') + run: exit 0 + test: + needs: check_manual_trigger uses: https://git.tainton.uk/public/webexmemebot/src/branch/main/.gitea/workflows/ci.yml create_release: runs-on: ubuntu-latest + needs: test outputs: release_name: ${{ steps.tag_version.outputs.new_tag }} success: ${{ steps.set_flag.outputs.success }}