fix(ci): update URL of CI workflow dynamically

This commit is contained in:
Luke Tainton 2025-01-01 00:55:08 +00:00
parent 98a96a6a24
commit bd7c145e0d
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

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