Skip to content

chore(ci): add auto tagging submodule after release #1

chore(ci): add auto tagging submodule after release

chore(ci): add auto tagging submodule after release #1

Workflow file for this run

name: Auto Tagging Submodule After Release
on:
push:
branches:
- main
jobs:
tag_push:

Check failure on line 9 in .github/workflows/after_release.yml

View workflow run for this annotation

GitHub Actions / Auto Tagging Submodule After Release

Invalid workflow file

The workflow is not valid. .github/workflows/after_release.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
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/*