fix: remove stale templates guide link and integration CI job #10
This file contains hidden or 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: Spec Auto-Release | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| auto-release: | |
| if: > | |
| github.event.pull_request.merged == true && | |
| github.event.pull_request.head.ref == 'auto/spec-update' && | |
| contains(github.event.pull_request.labels.*.name, 'auto-release') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Determine next patch version | |
| id: version | |
| run: | | |
| LATEST_TAG=$(git tag --sort=-v:refname | head -1) | |
| if [ -z "$LATEST_TAG" ]; then | |
| NEXT="v0.0.1" | |
| else | |
| VERSION="${LATEST_TAG#v}" | |
| MAJOR=$(echo "$VERSION" | cut -d. -f1) | |
| MINOR=$(echo "$VERSION" | cut -d. -f2) | |
| PATCH=$(echo "$VERSION" | cut -d. -f3) | |
| NEXT="v${MAJOR}.${MINOR}.$((PATCH + 1))" | |
| fi | |
| echo "tag=$NEXT" >> "$GITHUB_OUTPUT" | |
| echo "Releasing: $NEXT" | |
| - name: Create and push tag | |
| run: | | |
| git tag "${{ steps.version.outputs.tag }}" | |
| git push origin "${{ steps.version.outputs.tag }}" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |