-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Oct 31, 2024
1 parent
8e6ac30
commit c4aef34
Showing
1 changed file
with
8 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,25 +22,15 @@ jobs: | |
pip install poetry | ||
poetry install | ||
- name: Generate docs | ||
run: | | ||
poetry run bbot/scripts/docs.py | ||
- name: Commit and Push Changes | ||
run: | | ||
git branch -D update-docs || true | ||
git switch dev | ||
git config user.name "BBOT Docs Autopublish" | ||
git config user.email "[email protected]" | ||
git switch -c update-docs | ||
git add "*.md" "docs/data/chord_graph/*.json" | ||
git commit -m "Refresh module docs" | ||
git push -u origin update-docs --force | ||
git switch dev | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} | ||
# - name: Create or Update Pull Request | ||
# uses: peter-evans/create-pull-request@v7 | ||
# with: | ||
# token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} | ||
# branch: update-docs | ||
# title: "Daily Docs Update" | ||
# body: "This is an automated pull request to update the documentation." | ||
poetry run bbot/scripts/docs.py | ||
- name: Create or Update Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} | ||
branch: update-docs | ||
title: "Daily Docs Update" | ||
body: "This is an automated pull request to update the documentation." |