Skip to content

Commit a878613

Browse files
committed
Only run on releases
1 parent f10b83e commit a878613

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
4-
push:
5-
branches: [main, master]
6-
pull_request:
74
release:
85
types: [published]
96
workflow_dispatch:
@@ -15,9 +12,9 @@ permissions: read-all
1512
jobs:
1613
pkgdown:
1714
runs-on: ubuntu-latest
18-
# Only restrict concurrency for non-PR jobs
1915
concurrency:
20-
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
16+
group: pkgdown-${{ github.run_id }}
17+
cancel-in-progress: true
2118
env:
2219
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2320
permissions:

0 commit comments

Comments
 (0)