Skip to content

Merge pull request #34 from origadmin/dev #4

Merge pull request #34 from origadmin/dev

Merge pull request #34 from origadmin/dev #4

Workflow file for this run

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/*