-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (51 loc) · 1.9 KB
/
update-extensions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: update-extensions
on:
workflow_dispatch:
repository_dispatch:
types: [trigger-npm-update]
jobs:
update-dependency:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
branch: [main]
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
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
token: ${{ env.ACTIONS_BOT_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: npm install
- run: npm update @redpanda-data/docs-extensions-and-macros
- name: Commit changes
run: |
git config --global user.name "vbotbuildovich"
git config --global user.email "[email protected]"
git add package.json package-lock.json
git commit -m "Update @redpanda-data/docs-extensions-and-macros"
env:
ACCESS_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }}
- uses: peter-evans/create-pull-request@v6
with:
commit-message: "auto-docs: update @redpanda-data/docs-extensions-and-macros"
token: ${{ env.ACTIONS_BOT_TOKEN }}
branch: update-branch-${{ matrix.branch }}
title: "auto-docs: Update extensions on ${{ matrix.branch }}"
body: "This PR updates the @redpanda-data/docs-extensions-and-macros package on the ${{ matrix.branch }} branch."
labels: auto-docs
reviewers: asimms41, JakeSCahill, Deflaimun