fix: use interval to create ScheduledTask #16
Workflow file for this run
This file contains hidden or 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: Release docs | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| pr: | |
| description: Pull request number to release docs for | |
| required: true | |
| type: string | |
| pull_request: | |
| types: [closed] | |
| branches: [ main ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout merge commit (auto on merge to main) | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| ref: ${{ github.event.pull_request.merge_commit_sha }} | |
| persist-credentials: false | |
| - name: Checkout PR merge ref (manual on PR) | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| ref: refs/pull/${{ inputs.pr }}/merge | |
| persist-credentials: false | |
| - name: Configure Git Credentials | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.12" | |
| version: "latest" | |
| - run: uv sync --only-dev | |
| - run: uv run mkdocs gh-deploy --force |