File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,18 @@ jobs:
117
117
cp -a _notebook_repo/. _build/lecture-python-programming.notebooks
118
118
cp _build/jupyter/*.ipynb _build/lecture-python-programming.notebooks
119
119
ls -a _build/lecture-python-programming.notebooks
120
- # - name: Commit latest notebooks to lecture-python-programming.notebooks
121
- # uses: cpina/github-action-push-to-another-repository@main
122
- # env:
123
- # CONDA: /__w/lecture-python-programming.myst/lecture-python-programming.myst/3
124
- # API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }}
125
- # with:
126
- # source-directory: '_build/lecture-python-programming.notebooks/'
127
- # destination-repository-username: 'QuantEcon'
128
- # destination-repository-name: 'lecture-python-programming.notebooks'
129
- # target-branch: master
130
- # commit-message: 'auto publishing updates to notebooks'
131
- # destination-github-username: 'quantecon-services'
132
-
120
+ - name : Commit notebooks to lecture-python-programming.notebooks
121
+ shell : bash -l {0}
122
+ env :
123
+ QE_SERVICES_PAT : ${{ secrets.QUANTECON_SERVICES_PAT }}
124
+ run : |
125
+ git clone https://quantecon-services:[email protected] /quantecon/lecture-python-programming.notebooks
126
+
127
+ cp _build/lecture-python-programming.notebooks/*.ipynb lecture-python-programming.notebooks
128
+
129
+ cd lecture-python-programming.notebooks
130
+ git config user.name "QuantEcon Services"
131
+ git config user.email "[email protected] "
132
+ git add *.ipynb
133
+ git commit -m "auto publishing updates to notebooks"
134
+ git push origin master
You can’t perform that action at this time.
0 commit comments