fix(ci): remove get_latest_tag / get_last_tag
This commit is contained in:
parent
742ae10e76
commit
2d10fb9270
@ -8,6 +8,7 @@ on:
|
||||
jobs:
|
||||
check_manual_trigger:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ gitea.event_name == 'issue_comment' }}
|
||||
steps:
|
||||
- name: Log event metadata
|
||||
run: |
|
||||
@ -23,33 +24,32 @@ jobs:
|
||||
run: |
|
||||
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:
|
||||
name: Get latest tag
|
||||
runs-on: ubuntu-latest
|
||||
needs: check_manual_trigger
|
||||
outputs:
|
||||
latesttag: ${{ steps.latesttag.outputs.latesttag }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get latest tag
|
||||
id: latesttag
|
||||
run: |
|
||||
LATESTTAG=$(git describe --tags --abbrev=0)
|
||||
echo "latesttag=$LATESTTAG" >> "$GITEA_OUTPUT"
|
||||
# get_last_tag:
|
||||
# name: Get last tag
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: check_manual_trigger
|
||||
# outputs:
|
||||
# last_tag: ${{ steps.last_tag.outputs.last_tag }}
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4.2.2
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
# - name: Get last tag
|
||||
# id: last_tag
|
||||
# run: |
|
||||
# LASTTAG=$(git describe --tags --abbrev=0)
|
||||
# echo "last_tag=$LASTTAG" >> "$GITEA_OUTPUT"
|
||||
|
||||
# test:
|
||||
# name: Unit Test
|
||||
# needs: get_latest_tag
|
||||
# uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@${{ needs.get_latest_tag.outputs.latesttag }}
|
||||
# uses: https://git.tainton.uk/public/webexmemebot/.gitea/workflows/ci.yml@main
|
||||
# continue-on-error: true
|
||||
|
||||
create_release:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
# needs: test
|
||||
needs: get_latest_tag
|
||||
# needs: get_last_tag
|
||||
outputs:
|
||||
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
||||
success: ${{ steps.set_flag.outputs.success }}
|
||||
|
Loading…
Reference in New Issue
Block a user