docs: setting cron for periodical update tutorials #24
Workflow file for this run
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
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-update: | |
runs-on: ubuntu-20.04 | |
env: | |
GIT_TRACE: 1 | |
GIT_CURL_VERBOSE: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
#lfs: true | |
- run: git submodule status | |
- run: git lfs install --skip-smudge # Skip smudge - We'll download binary files later in a faster batch | |
- run: git submodule update --remote | |
- run: git submodule status | |
- run: git status | |
- 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 |