diff --git a/.github/workflows/autolink-readthedocs-previews-to-prs.yaml b/.github/workflows/autolink-readthedocs-previews-to-prs.yaml new file mode 100644 index 0000000..4d2bb4c --- /dev/null +++ b/.github/workflows/autolink-readthedocs-previews-to-prs.yaml @@ -0,0 +1,15 @@ +name: Add readthedocs preview link to pull requests + +on: + pull_request_target: + +jobs: + autolink-rtd-previews: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: readthedocs/actions/preview@v1 + with: + # The project slug in RTD still has the old repo name + project-slug: "2i2c-pilot-documentation"