Update CLI documentation #10
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: Update CLI documentation | |
on: | |
schedule: | |
- cron: "30 3 * * MON" | |
workflow_dispatch: | |
jobs: | |
update-cli: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare | |
uses: ./.github/actions/prepare | |
- name: Install Juno CLI | |
run: npm i -g @junobuild/cli | |
shell: bash | |
- name: Update | |
run: npm run docs:cli | |
- name: Check for Changes | |
run: | | |
if ! git diff --quiet; then | |
echo "CHANGES_DETECTED=true" >> $GITHUB_ENV | |
fi | |
# This action creates a PR only if there are changes. | |
- name: Create Pull Request | |
if: env.CHANGES_DETECTED == 'true' | |
uses: ./.github/actions/create-pr | |
with: | |
branch: bot-cli-docs-update | |
title: "docs: Update CLI documentation" | |
body: | | |
Modifications have been made to the list of commands supported by the CLI. |