Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 50 additions & 56 deletions .github/workflows/fetch-acceptance-tests.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,51 @@
---
name: Fetch and Save Kubernetes Acceptance Tests
on:
workflow_dispatch: # Allows manual trigger of the workflow
repository_dispatch: # Allows other repositories to trigger this workflow
types: [trigger-acceptance-test-pull]
jobs:
fetch-and-save:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_SM_READONLY_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SM_READONLY_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: get secrets from aws sm
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: main
token: ${{ env.ACTIONS_BOT_TOKEN }}
path: redpanda-docs

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install dependencies
run: |
cd ./redpanda-docs/scripts/fetch-from-github
npm install

- name: Run the script and save the output
run: node ./redpanda-docs/scripts/fetch-from-github/fetch.js redpanda-data redpanda-operator acceptance/features ../../modules/manage/examples/kubernetes
env:
VBOT_GITHUB_API_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }}

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "auto-docs: Update K8s acceptance tests"
token: ${{ env.ACTIONS_BOT_TOKEN }}
branch: update-acceptance-tests
title: "auto-docs: Update K8s acceptance tests"
body: "This PR auto-updates the acceptance tests we use as examples in our Kubernetes docs."
labels: auto-docs
name: Fetch and Save Kubernetes Acceptance Tests
on:
workflow_dispatch: # Allows manual trigger of the workflow
repository_dispatch: # Allows other repositories to trigger this workflow
types: [trigger-acceptance-test-pull]
jobs:
fetch-and-save:
runs-on: ubuntu-24.04
permissions:
id-token: write
contents: read
steps:
- name: configure aws credentials
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 }}
- name: get secrets from aws sm
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: main
token: ${{ env.ACTIONS_BOT_TOKEN }}
path: redpanda-docs
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: |
cd ./redpanda-docs/scripts/fetch-from-github
npm install
- name: Run the script and save the output
run: node ./redpanda-docs/scripts/fetch-from-github/fetch.js redpanda-data redpanda-operator acceptance/features ../../modules/manage/examples/kubernetes
env:
VBOT_GITHUB_API_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "auto-docs: Update K8s acceptance tests"
token: ${{ env.ACTIONS_BOT_TOKEN }}
branch: update-acceptance-tests
title: "auto-docs: Update K8s acceptance tests"
body: "This PR auto-updates the acceptance tests we use as examples in our Kubernetes docs."
labels: auto-docs