-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: setting cron for periodical update tutorials
- Loading branch information
Showing
2 changed files
with
55 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 |
---|---|---|
|
@@ -126,21 +126,30 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
if: inputs.create_pr | ||
needs: create-legacy-ckpts | ||
env: | ||
PL_VERSION: ${{ needs.create-legacy-ckpts.outputs.pl-version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
|
||
- name: Append a new version to legacy checkpoint list | ||
run: echo ${{ needs.create-legacy-ckpts.outputs.pl-version }} >> ${{ env.legacy_dir }}/back-compatible-versions.txt | ||
working-directory: ${{ env.legacy_dir }} | ||
run: echo ${PL_VERSION} >> back-compatible-versions.txt | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: Adding test for legacy checkpoint created with ${{ needs.create-legacy-ckpts.outputs.pl-version }} | ||
title: Adding test for legacy checkpoint created with ${{ env.PL_VERSION }} | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
commit-message: "update tutorials to ${{ env.PL_VERSION }}" | ||
body: "**This is automated addition of created checkpoints with the latest lighting release!**" | ||
delete-branch: true | ||
token: ${{ secrets.PAT_GHOST }} | ||
labels: | | ||
checkpointing | ||
tests | ||
pl | ||
assignees: borda | ||
reviewers: borda |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Update tutorials | ||
|
||
on: | ||
pull_request: | ||
branches: ["master"] | ||
paths: | ||
- ".github/workflows/docs-tutorials.yml" | ||
schedule: | ||
# on Sundays | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: {} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
docs-udpate: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Pull submodule | ||
working-directory: _notebooks | ||
run: git submodule update --remote | ||
|
||
- name: Create Pull Request | ||
if: github.event_name != 'pull_request' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: "update ref to latest tutorials" | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
commit-message: "update tutorials to ..." | ||
body: "**This is automated update with latest lighting tutorials!**" | ||
branch: "docs/update-tutorials" | ||
delete-branch: true # Delete the branch when closing pull requests, and when undeleted after merging. | ||
token: ${{ secrets.PAT_GHOST }} | ||
labels: | | ||
docs | ||
assignees: borda | ||
reviewers: borda |