trigger-npm-update #100
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: Update docs tools and extensions | |
| on: | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: [trigger-npm-update] | |
| jobs: | |
| update-dependency: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| branch: [main, 'v/25.1', 'v/24.3', 'v/24.2', shared] | |
| steps: | |
| - uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: ${{ vars.RP_AWS_CRED_REGION }} | |
| role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }} | |
| - uses: aws-actions/aws-secretsmanager-get-secrets@v2 | |
| with: | |
| secret-ids: | | |
| ,sdlc/prod/github/actions_bot_token | |
| parse-json-secrets: true | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ matrix.branch }} | |
| token: ${{ env.ACTIONS_BOT_TOKEN }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Update @redpanda-data/docs-extensions-and-macros | |
| run: npm update @redpanda-data/docs-extensions-and-macros | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ env.ACTIONS_BOT_TOKEN }} | |
| commit-message: "auto-docs: Update @redpanda-data/docs-extensions-and-macros" | |
| labels: auto-docs | |
| title: "auto-docs: Update @redpanda-data/docs-extensions-and-macros" | |
| body: | | |
| This PR updates `@redpanda-data/docs-extensions-and-macros` using `npm update`. | |
| branch: update/docs-extensions-and-macros-${{ matrix.branch }} | |
| base: ${{ matrix.branch }} |