Update CLI docs #144
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 docs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "10 20 * * 1-5" # workdays at 20:10 | |
jobs: | |
check_saleor_release: | |
name: Update CLI docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Checkout CLI repository | |
uses: actions/checkout@v4 | |
with: | |
repository: saleor/cli | |
path: cli | |
- name: Remove docs/cli | |
run: rm -rf docs/cli | |
- name: Copy CLI docs | |
run: cp -r cli/docs/cli docs/ | |
- name: Remove CLI repository | |
run: rm -rf cli | |
- uses: bahmutov/npm-install@v1 | |
- name: Lint changes | |
run: npx pretty-quick | |
- name: Show changed files | |
run: git status | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
branch: bot-update-cli-3.x | |
commit-message: "Update CLI docs" | |
title: "Update CLI docs" | |
body: | | |
Pull request auto-generated by bot | |
labels: | | |
:robot: bot |