Curl and wake up fix #227
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
| # Copyright (c) Codesphere Inc. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: 'Auto-Update Docs & Licenses' | |
| permissions: | |
| contents: write | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| update-files: | |
| # skip runs triggered by the bot's own commit to avoid loops and runs triggered by renovate | |
| if: github.actor != 'github-actions[bot]' && !startsWith(github.event.pull_request.head.ref, 'renovate/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| # on push to main, use main; on PR, check out the PR head | |
| ref: ${{ github.event.pull_request.head.ref || github.ref }} | |
| # Use PAT to ensure commits trigger other workflows | |
| token: ${{ secrets.PAT_UPDATE_DOCS }} | |
| - name: Set up Go | |
| uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6 | |
| with: | |
| go-version: '1.26.0' | |
| - name: Update docs & licenses | |
| run: | | |
| ./hack/update-docs-and-licenses.sh | |
| - name: Commit and push auto-generated changes | |
| uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9 | |
| with: | |
| author_name: ${{ github.event.pull_request.user.login }} | |
| author_email: ${{ github.event.pull_request.user.id }}+${{ github.event.pull_request.user.login }}@users.noreply.github.com | |
| message: 'chore(docs): Auto-update docs and licenses' | |
| commit: '--signoff' |