chore: 优化auto tag CI

This commit is contained in:
MistEO
2023-05-01 00:36:33 +08:00
committed by GitHub
parent dc7dd129b5
commit f30b1b60a2

View File

@@ -34,7 +34,6 @@ jobs:
run: |
git tag -a "${{ steps.extract_tag.outputs.tag_name }}" -m "${{ steps.extract_tag.outputs.tag_name }}" -f
git push origin "${{ steps.extract_tag.outputs.tag_name }}" -f
gh workflow run --repo $GITHUB_REPOSITORY --ref "${{ steps.extract_tag.outputs.tag_name }}" ci
- name: Merge into dev and push
run: |
@@ -42,3 +41,8 @@ jobs:
git merge "${{ steps.extract_tag.outputs.tag_name }}"
git push origin dev
- name: Trigger secondary workflows # ref: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
run: |
gh workflow run --repo $GITHUB_REPOSITORY --ref "${{ steps.extract_tag.outputs.tag_name }}" ci
env:
GH_TOKEN: ${{ github.token }}