docs update #2
Workflow file for this run
This file contains 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: DocsTest | |
on: | |
push: | |
branches: | |
- sms/upgrades | |
jobs: | |
update-docs: | |
name: Update AWS permissions docs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout docs | |
uses: actions/checkout@v4 | |
- name: Checkout ccp | |
uses: actions/checkout@v4 | |
with: | |
repository: porter-dev/cluster-control-plane | |
path: ./ccp | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
- name: Generate docs | |
run: | | |
mkdir -p docs/snippets | |
curl https://porter-role.s3.us-east-2.amazonaws.com/permissions-docs.txt > docs/snippets/aws-permissions.mdx | |
- name: Commit docs | |
run: | | |
git add . | |
git commit -m "Autoupdate docs from CCP" | |
git push origin main |