tag #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tag | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: '打标签' | |
required: true | |
jobs: | |
tag: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: init | |
run: | | |
git config --global user.name "${GITHUB_ACTOR}" | |
git config --global user.email "${GITHUB_ACTOR}@gmail.com" | |
- uses: actions/checkout@v4 | |
- run: | | |
git tag v${{github.event.inputs.tag}} | |
git push origin v${{github.event.inputs.tag}} |