Skip to content

Commit

Permalink
added functionality to push from dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
npikall committed Aug 1, 2024
1 parent c4d209f commit cfb8532
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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/
Expand All @@ -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"

0 comments on commit cfb8532

Please sign in to comment.