Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/notebook-test-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,26 @@ jobs:
git diff --name-only >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Make pull request with notebook outputs
if: "!cancelled()"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git switch -c actions/cron-${{ github.run_id }}
git commit -am "Re-run notebooks"
git push origin actions/cron-${{ github.run_id }}
gh pr create \
-B main \
-H actions/cron-${{ github.run_id }} \
--title "Update notebook outputs" \
--body "An action recently executed the notebooks in this repo. \
This PR updates all notebooks that ran successfully with the new cell outputs.
> [!NOTE]
> This pull request was created by a GitHub action." \
--reviewer frankharkins

- name: Upload executed notebooks
if: "!cancelled()"
uses: actions/upload-artifact@v4
Expand Down