generated from origadmin/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.16 KB
/
after_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Auto Tagging Submodule After Release
on:
release:
types: [ created ]
push:
branches:
- main
tags:
- "v*.*.*"
jobs:
tag_push:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/[email protected] # v4
with:
ref: main
fetch-depth: 0 # Fetch all history
- name: Run tag script
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
chmod +x ./.github/scripts/tag.sh
./.github/scripts/tag.sh
- name: Commit and push
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git push origin --tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Upload assets
# uses: actions/[email protected]
# with:
# name: protoc-gen-go-gins
# path: ./cmd/protoc-gen-go-gins/dist/*