Skip to content

chore(ci): update workflow to handle release tags #2

chore(ci): update workflow to handle release tags

chore(ci): update workflow to handle release tags #2

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