fix(ci): remove get_latest_tag / get_last_tag

This commit is contained in:
Luke Tainton 2025-01-02 17:30:20 +00:00
parent 742ae10e76
commit 2d10fb9270
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -8,6 +8,7 @@ on:
jobs: jobs:
check_manual_trigger: check_manual_trigger:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ gitea.event_name == 'issue_comment' }}
steps: steps:
- name: Log event metadata - name: Log event metadata
run: | run: |
@ -23,33 +24,32 @@ jobs:
run: | run: |
curl -X DELETE -H "Authorization: token ${{ gitea.token }}" "${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/comments/${{ gitea.event.comment.id }}" curl -X DELETE -H "Authorization: token ${{ gitea.token }}" "${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/comments/${{ gitea.event.comment.id }}"
get_latest_tag: # get_last_tag:
name: Get latest tag # name: Get last tag
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: check_manual_trigger # needs: check_manual_trigger
outputs: # outputs:
latesttag: ${{ steps.latesttag.outputs.latesttag }} # last_tag: ${{ steps.last_tag.outputs.last_tag }}
steps: # steps:
- uses: actions/checkout@v4.2.2 # - uses: actions/checkout@v4.2.2
with: # with:
fetch-depth: 0 # fetch-depth: 0
- name: Get latest tag # - name: Get last tag
id: latesttag # id: last_tag
run: | # run: |
LATESTTAG=$(git describe --tags --abbrev=0) # LASTTAG=$(git describe --tags --abbrev=0)
echo "latesttag=$LATESTTAG" >> "$GITEA_OUTPUT" # echo "last_tag=$LASTTAG" >> "$GITEA_OUTPUT"
# test: # test:
# name: Unit Test # name: Unit Test
# needs: get_latest_tag # uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@main
# uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@${{ needs.get_latest_tag.outputs.latesttag }}
# continue-on-error: true # continue-on-error: true
create_release: create_release:
name: Create Release name: Create Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
# needs: test # needs: test
needs: get_latest_tag # needs: get_last_tag
outputs: outputs:
release_name: ${{ steps.tag_version.outputs.new_tag }} release_name: ${{ steps.tag_version.outputs.new_tag }}
success: ${{ steps.set_flag.outputs.success }} success: ${{ steps.set_flag.outputs.success }}