chore(ci): add auto tagging submodule after release #1
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: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
tag_push: | ||
Check failure on line 9 in .github/workflows/after_release.yml GitHub Actions / Auto Tagging Submodule After ReleaseInvalid workflow file
|
||
needs: [ release ] | ||
if: success() | ||
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/* |