Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
+++ /dev/null
-name: Read the Docs PR preview
-# Automatically edits a pull request's descriptions with a link
-# to the documentation's preview on Read the Docs.
-
-on:
- pull_request_target:
- types:
- - opened
- paths:
- - 'Doc/**'
- - '.github/workflows/doc.yml'
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
-
-jobs:
- documentation-links:
- runs-on: ubuntu-latest
- permissions:
- pull-requests: write
- timeout-minutes: 5
-
- steps:
- - uses: readthedocs/actions/preview@b8bba1484329bda1a3abe986df7ebc80a8950333 # v1.5
- with:
- project-slug: "cpython-previews"
- single-version: "true"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- with:
- python-version: "3.x"
- - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
+ - uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1