Skip to content

Commit

Permalink
Creating a new version only tracks relevant files to git (#2726)
Browse files Browse the repository at this point in the history
Summary:
Fixes an issue where unrelated files could get added to the `docusaurus-versions` branch. This broke GHA in the Ax repo since this was adding the results of running tutorials. Botorch doesn't run tutorials in CI but we still fix this to avoid other possible issues down the road.

Same fix as the Ax counterpart: facebook/Ax#3306

Pull Request resolved: #2726

Reviewed By: saitcakmak

Differential Revision: D69128162

Pulled By: CristianLara

fbshipit-source-id: 95c798cf5c10a1fe2ed21b719a64afdf8d53ff0e
  • Loading branch information
CristianLara authored and facebook-github-bot committed Feb 4, 2025
1 parent 3faf489 commit a972ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
yarn
yarn docusaurus docs:version ${{ inputs.new_version }}
git add --all
git add versioned_docs/ versioned_sidebars/ versions.json
git commit -m "Create version ${{ inputs.new_version }} of site in Docusaurus"
git push --force origin HEAD:docusaurus-versions
- name: Build website
Expand Down

0 comments on commit a972ae1

Please sign in to comment.