Skip to content

Commit

Permalink
Update pkgdown.yaml
Browse files Browse the repository at this point in the history
Ensure pkgdown workflow only runs on release, push to main, or if the pull request to main is merged. Sick of it running on every gh pr create. See https://stackoverflow.com/questions/60710209/trigger-github-actions-only-when-pr-is-merged
  • Loading branch information
egouldo authored Aug 10, 2024
1 parent ccbcadb commit 062f336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [main, master]
pull_request:
branches: [main, master]
types:
- closed
release:
types: [published]
workflow_dispatch:
Expand All @@ -13,6 +15,7 @@ name: pkgdown

jobs:
pkgdown:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
Expand Down

0 comments on commit 062f336

Please sign in to comment.