chore: release 11.5.1 #1306
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
| --- | |
| # yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json | |
| name: changes | |
| "on": | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| jobs: | |
| envvars: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate token | |
| if: github.event_name != 'pull_request' | |
| id: token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| app-id: ${{ secrets.TOKEN_EXCHANGE_APP }} | |
| private-key: ${{ secrets.TOKEN_EXCHANGE_KEY }} | |
| permission-contents: write | |
| - name: Checkout source | |
| if: github.event_name != 'pull_request' | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ steps.token.outputs.token }} | |
| - name: PR checkout | |
| if: github.event_name == 'pull_request' | |
| uses: actions/checkout@v6 | |
| - name: Setup golang | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Setup task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate envvars | |
| run: task envvars | |
| - name: Source rebase | |
| if: github.event_name != 'pull_request' | |
| run: git pull --autostash --rebase | |
| - name: Commit changes | |
| if: github.event_name != 'pull_request' | |
| uses: EndBug/add-and-commit@v10 | |
| with: | |
| author_name: GitHub Actions | |
| author_email: github@webhippie.de | |
| add: docs/partials/envvars.md | |
| message: "docs: automated envvars update" | |
| push: true | |
| commit: --signoff | |
| metrics: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate token | |
| if: github.event_name != 'pull_request' | |
| id: token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| app-id: ${{ secrets.TOKEN_EXCHANGE_APP }} | |
| private-key: ${{ secrets.TOKEN_EXCHANGE_KEY }} | |
| permission-contents: write | |
| - name: Checkout source | |
| if: github.event_name != 'pull_request' | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ steps.token.outputs.token }} | |
| - name: PR checkout | |
| if: github.event_name == 'pull_request' | |
| uses: actions/checkout@v6 | |
| - name: Setup golang | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Setup task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate metrics | |
| run: task metrics | |
| - name: Source rebase | |
| if: github.event_name != 'pull_request' | |
| run: git pull --autostash --rebase | |
| - name: Commit changes | |
| if: github.event_name != 'pull_request' | |
| uses: EndBug/add-and-commit@v10 | |
| with: | |
| author_name: GitHub Actions | |
| author_email: github@webhippie.de | |
| add: docs/partials/metrics.md | |
| message: "docs: automated metrics update" | |
| push: true | |
| commit: --signoff | |
| labels: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate token | |
| if: github.event_name != 'pull_request' | |
| id: token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| app-id: ${{ secrets.TOKEN_EXCHANGE_APP }} | |
| private-key: ${{ secrets.TOKEN_EXCHANGE_KEY }} | |
| permission-contents: write | |
| - name: Checkout source | |
| if: github.event_name != 'pull_request' | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ steps.token.outputs.token }} | |
| - name: PR checkout | |
| if: github.event_name == 'pull_request' | |
| uses: actions/checkout@v6 | |
| - name: Setup golang | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Setup task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate labels | |
| run: task labels | |
| - name: Source rebase | |
| if: github.event_name != 'pull_request' | |
| run: git pull --autostash --rebase | |
| - name: Commit changes | |
| if: github.event_name != 'pull_request' | |
| uses: EndBug/add-and-commit@v10 | |
| with: | |
| author_name: GitHub Actions | |
| author_email: github@webhippie.de | |
| add: docs/partials/labels.md | |
| message: "docs: automated labels update" | |
| push: true | |
| commit: --signoff | |
| ... |