Skip to content

Commit b970e20

Browse files
perf: 更新任务
1 parent ec03cfa commit b970e20

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ jobs:
4141
- name: Create Tag
4242
if: env.create == '1'
4343
run: |
44-
git config --global user.name "${GITHUB_ACTOR}"
45-
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
46-
git tag -a ${{ env.version }} -m "Release ${{ env.version }}"
44+
git config --global user.name "github-actions[bot]"
45+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46+
git add .
47+
git commit -m "Release ${{ env.version }}" || echo "No changes"
48+
git tag -a ${{ env.version }} -m "Release ${{ env.version }}" || echo "Tag already exists"
4749
git push origin ${{ env.version }} || echo "Tag already exists"
50+
git push origin master || echo "No changes"
4851
env:
4952
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5053

0 commit comments

Comments
 (0)