From d7d51cd6282454c6ee8e1ce1649e59dcf0733a4d Mon Sep 17 00:00:00 2001 From: chen Date: Sun, 24 Mar 2024 00:12:01 +0800 Subject: [PATCH] action --- .github/workflows/tag.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 0000000..8a519d2 --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,26 @@ +name: tag +on: + workflow_dispatch: + inputs: + tag: + description: '打标签' + required: true + +env: + REPOSITORY_PATH: https://${{secrets.ACCESS_TOKEN}}@github.com/ +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}} \ No newline at end of file