Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto generate localstack cli manual #812

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
49 changes: 49 additions & 0 deletions .github/workflows/cli-manual-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Update LocalStack CLI Manual

on:
schedule:
- cron: 0 0 1 */3 * # every 3 months
workflow_dispatch:
inputs:
targetBranch:
required: false
type: string
default: 'main'

jobs:
update-cli-manual:
name: Update CLI manual
runs-on: ubuntu-latest
steps:
- name: Checkout docs
uses: actions/checkout@v4
with:
fetch-depth: 0
path: docs
ref: ${{ github.event.inputs.targetBranch || 'main' }}

- name: Set up Python 3.10
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install Python
run: |
pip3 install localstack

- name: Run the script
run: |
python3 scripts/cli_manual_automation.py

- name: Create PR
uses: peter-evans/create-pull-request@v5
with:
path: docs
title: "Update CLI manual Docs"
branch: "cli-manual-auto-updates"
author: "LocalStack Bot <[email protected]>"
committer: "LocalStack Bot <[email protected]>"
commit-message: "update generated cli manual docs"
token: ${{ secrets.PRO_ACCESS_TOKEN }}
reviewers: HarshCasper
Loading