From e2e3b020212c0f760a54d507a913f1ee84a67d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Wed, 24 Jul 2024 17:55:29 +0800 Subject: [PATCH] feat(ci): add tag push --- .github/workflows/tag-push.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/tag-push.yml diff --git a/.github/workflows/tag-push.yml b/.github/workflows/tag-push.yml new file mode 100644 index 000000000..064d55e58 --- /dev/null +++ b/.github/workflows/tag-push.yml @@ -0,0 +1,24 @@ +# 文件名建议统一为 tag-push.yml +# 应用 publish.yml 的 demo + +name: TAG_PUSH + +on: create + +jobs: + TAG_PUSH: + runs-on: ubuntu-latest + if: github.event.ref_type == 'tag' + steps: + - uses: actions/checkout@v4 + with: + ref: main + fetch-depth: 0 + token: ${{ secrets.PERSONAL_TOKEN }} + - run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git status + git fetch origin + git merge origin/develop + git push origin main