Skip to content

Commit 88546cf

Browse files
authored
FIX: update push to notebook repo (#218)
1 parent dcbfc04 commit 88546cf

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,18 @@ jobs:
8888
cp lectures/Project.toml _build/lecture-julia.notebooks
8989
cp lectures/Manifest.toml _build/lecture-julia.notebooks
9090
ls -a _build/lecture-julia.notebooks
91-
- name: Commit latest notebooks to lecture-julia.notebooks
92-
uses: cpina/[email protected]
91+
- name: Commit notebooks to lecture-julia.notebooks
92+
shell: bash -l {0}
9393
env:
94-
API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }}
95-
with:
96-
source-directory: '_build/lecture-julia.notebooks/'
97-
destination-repository-username: 'QuantEcon'
98-
destination-repository-name: 'lecture-julia.notebooks'
99-
target-branch: main
100-
commit-message: 'auto publishing updates to notebooks'
101-
destination-github-username: 'quantecon-services'
102-
user-email: [email protected]
94+
QE_SERVICES_PAT: ${{ secrets.QUANTECON_SERVICES_PAT }}
95+
run: |
96+
git clone https://quantecon-services:[email protected]/quantecon/lecture-julia.notebooks
97+
98+
cp _build/lecture-julia.notebooks/*.ipynb lecture-julia.notebooks
99+
100+
cd lecture-julia.notebooks
101+
git config user.name "QuantEcon Services"
102+
git config user.email "[email protected]"
103+
git add *.ipynb
104+
git commit -m "auto publishing updates to notebooks"
105+
git push origin main

0 commit comments

Comments
 (0)