-
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.
added functionality to push from dev branch
- Loading branch information
Showing
1 changed file
with
25 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ jobs: | |
# REPO2DOCKER_EXTRA_ARGS: --subdir notebooks | ||
|
||
- name: Commit Files Quarto Book | ||
if: github.ref == 'refs/heads/main' | github.ref == 'refs/heads/dev' | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
NB_PATH=./notebooks/*.ipynb | ||
git config --local user.name "$GITHUB_ACTOR" | ||
|
@@ -75,7 +75,7 @@ jobs: | |
git push origin || echo "No changes to commit" | ||
- name: Commit Files Pythia Book | ||
if: github.ref == 'refs/heads/main' | github.ref == 'refs/heads/dev' | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
python src/render_sfinx_toc.py | ||
cp ./_toc.yml ./pythia/ | ||
|
@@ -88,3 +88,26 @@ jobs: | |
git commit -m "Quarto output" || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" | ||
- name: Commit Files Quarto Book Branch dev | ||
if: github.ref == 'refs/heads/dev' | ||
run: | | ||
NB_PATH=./notebooks/*.ipynb | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git commit ${NB_PATH[*]} -m "Quarto output" || echo "No changes to commit" | ||
git push origin dev || echo "No changes to commit" | ||
- name: Commit Files Pythia Book Branch dev | ||
if: github.ref == 'refs/heads/dev' | ||
run: | | ||
python src/render_sfinx_toc.py | ||
cp ./_toc.yml ./pythia/ | ||
cp ./Makefile ./pythia/ | ||
cp -R ./notebooks/. ./pythia/notebooks/ | ||
cd ./pythia | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git add . | ||
git commit -m "Quarto output" || echo "No changes to commit" | ||
git push origin dev || echo "No changes to commit" | ||