forked from probml/pyprobml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto genreate
notebooks.md
(probml#992)
* autogenerate notebooks.md in workflow * probml_utils dependency removed * branch name changed * moved `generate_notebooks_md.py` to `.github/scripts` * add `notebooks_md` in .gitignore * removed
- Loading branch information
1 parent
928c310
commit 39f8115
Showing
4 changed files
with
78 additions
and
5 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
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 |
---|---|---|
|
@@ -214,3 +214,25 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: workflow_testing_indicator/ | ||
publish_branch: workflow_testing_indicator | ||
|
||
update_notebooks_md: | ||
runs-on: ubuntu-latest | ||
if: always() && github.event_name == 'push' # Don't run on pull requests | ||
steps: | ||
- name: Clone the reference repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install numpy pandas nbformat tabulate | ||
- name: Update notebooks.md | ||
run: | | ||
python internal/notebooks_md/generate_notebooks_md.py | ||
- name: Push notebooks.md to notebooks_md (does not run on pull requests) | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: notebooks_md/ | ||
publish_branch: auto_notebooks_md |
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 |
---|---|---|
|
@@ -109,3 +109,4 @@ GitHub.sublime-settings | |
# GitHub Actions | ||
workflow_testing_indicator* | ||
auto_generated_figures* | ||
notebooks_md* |
File renamed without changes.