From bd7c145e0d271dc991560ae749bb1fdd7bc8aba8 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Wed, 1 Jan 2025 00:55:08 +0000 Subject: [PATCH] fix(ci): update URL of CI workflow dynamically --- .gitea/workflows/release.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 026cb4e..c6229be 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,10 +19,20 @@ jobs: if: ${{ !contains(gitea.event.issue.number, '436') || !contains(gitea.event.comment.body, '/trigger-release') || !contains(gitea.event.comment.user.login, 'luke') }} run: exit 1 + get_latest_tag: + runs-on: ubuntu-latest + needs: check_manual_trigger + outputs: + latesttag: ${{ steps.latesttag.outputs.latesttag }} + steps: + - name: Get latest tag + id: latesttag + run: echo "latesttag=$(git describe --tags --abbrev=0)" >> "$GITEA_OUTPUT" + test: name: Unit Test - needs: check_manual_trigger - uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@main + needs: get_latest_tag + uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@${{ needs.get_latest_tag.outputs.latesttag }} create_release: name: Create Release