diff --git a/.github/workflows/docs_updater.yml b/.github/workflows/docs_updater.yml index dde85045a..483c492fd 100644 --- a/.github/workflows/docs_updater.yml +++ b/.github/workflows/docs_updater.yml @@ -27,12 +27,14 @@ jobs: - 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 "info@blacklanternsecurity.com" - git checkout -b update-docs + 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 @@ -40,6 +42,5 @@ jobs: with: token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} branch: update-docs - base: dev title: "Daily Docs Update" body: "This is an automated pull request to update the documentation."