Skip to content

Commit

Permalink
Add GitHub Action that adds a link in the issue description when ther…
Browse files Browse the repository at this point in the history
…e are changes in the docs
  • Loading branch information
stevepiercy committed Jul 3, 2024
1 parent fc177e9 commit ef1edce
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/rtd-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/workflows/rtd-pr-preview.yml
name: readthedocs/actions
on:
pull_request_target:
types:
- opened
# Execute this action only on PRs that touch
# documentation files.
paths:
- "docs/**"
- "*.rst"
- "src/icalendar/*.py"
- .readthedocs.yaml
- requirements_docs.txt

permissions:
pull-requests: write

jobs:
documentation-links:
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "icalendar"
single-version: "true"

0 comments on commit ef1edce

Please sign in to comment.