Skip to content

Commit

Permalink
Merge pull request #250 from liweijie0812/feat/tag-push
Browse files Browse the repository at this point in the history
feat(ci): add tag push
  • Loading branch information
Luozf12345 authored Jul 24, 2024
2 parents 6d3b10e + e2e3b02 commit 3aab663
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tag-push.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3aab663

Please sign in to comment.