Merge pull request #34 from origadmin/dev #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./scripts/tag.sh | |
./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/* |