From 09de954966155e0994fae8041b04878414fccc8c Mon Sep 17 00:00:00 2001 From: BHT Date: Wed, 10 Apr 2024 11:02:20 -0500 Subject: [PATCH] Add push step in --- .github/workflows/tutorials.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tutorials.yml b/.github/workflows/tutorials.yml index ae42444..3296f06 100644 --- a/.github/workflows/tutorials.yml +++ b/.github/workflows/tutorials.yml @@ -22,27 +22,20 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Get tutorials index + - name: Get tutorials index from source code run: | curl -L https://github.com/AdvancedPhotonSource/GSAS-II/raw/master/GSASII/tutorialIndex.py -o scripts/tutorialIndex.py - ls -lt scripts - pwd - - - name: save old tutorials index - run: | - cp tutorials.html tutorials.html.original - name: build tutorials index run: | cd scripts python makeGitTutorial.py .. - - name: see changes - run: | - git diff - - name: prepare to push changes back run: | git add tutorials.html git add */index.html git status + + - name: Push changes + uses: ad-m/github-push-action@master