feat(dargstack)!: migrate to v4.0.0-beta.1 #5846
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: CI | |
| permissions: {} | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - alpha | |
| - beta | |
| - main | |
| - renovate/** | |
| jobs: | |
| ci-optimization: | |
| name: CI optimization | |
| uses: dargmuesli/github-actions/.github/workflows/ci-optimization.yml@661e39fe1c9e484d94c6a5a9d4c9946d57c41771 # 5.1.0 | |
| permissions: | |
| pull-requests: read | |
| build: | |
| needs: ci-optimization | |
| if: needs.ci-optimization.outputs.continue == 'true' | |
| name: Update generated docs | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref || github.ref_name }} | |
| - name: Regenerate docs | |
| run: | | |
| go install github.com/dargstack/dargstack/v4/cmd/dargstack@latest | |
| export PATH="$(go env GOPATH)/bin:$PATH" | |
| dargstack document | |
| - name: Commit and push updated docs | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add artifacts/docs/ | |
| if git diff --staged --quiet; then | |
| echo "Docs are already up to date" | |
| else | |
| git commit -m "chore: update generated docs" | |
| git push | |
| fi | |
| release-semantic: | |
| needs: build | |
| name: Semantic Release | |
| uses: dargmuesli/github-actions/.github/workflows/release-semantic.yml@661e39fe1c9e484d94c6a5a9d4c9946d57c41771 # 5.1.0 | |
| permissions: | |
| contents: write | |
| id-token: write | |
| secrets: | |
| PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |