Skip to content

Commit 2970bb3

Browse files
authored
Merge pull request #326 from jdblischak/workflow-dispatch
Enable manual trigger of GitHub Actions workflows
2 parents 71f65b6 + 190c816 commit 2970bb3

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

.github/workflows/R-CMD-check.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: main
66
pull_request:
7-
branches: [main, master]
7+
branches: main
8+
workflow_dispatch:
89

910
name: R-CMD-check
1011

@@ -25,7 +26,6 @@ jobs:
2526
- {os: ubuntu-latest, r: 'oldrel-1'}
2627

2728
env:
28-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2929
R_KEEP_PKG_SOURCE: yes
3030

3131
steps:

.github/workflows/lint.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: main
66
pull_request:
7-
branches: [main, master]
7+
branches: main
8+
workflow_dispatch:
89

910
name: lint
1011

1112
jobs:
1213
lint:
1314
runs-on: ubuntu-latest
14-
env:
15-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1615
steps:
1716
- uses: actions/checkout@v3
1817

.github/workflows/pkgdown.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: main
66
pull_request:
7-
branches: [main, master]
7+
branches: main
88
release:
99
types: [published]
1010
workflow_dispatch:
@@ -17,8 +17,6 @@ jobs:
1717
# Only restrict concurrency for non-PR jobs
1818
concurrency:
1919
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
20-
env:
21-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2220
permissions:
2321
contents: write
2422
steps:
@@ -40,7 +38,7 @@ jobs:
4038
shell: Rscript {0}
4139

4240
- name: Deploy to GitHub pages 🚀
43-
if: github.event_name != 'pull_request'
41+
if: github.repository_owner == 'Merck' && github.event_name != 'pull_request'
4442
uses: JamesIves/[email protected]
4543
with:
4644
clean: false

.github/workflows/test-coverage.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: main
66
pull_request:
7-
branches: [main, master]
7+
branches: main
8+
workflow_dispatch:
89

910
name: test-coverage
1011

1112
jobs:
1213
test-coverage:
1314
runs-on: ubuntu-latest
14-
env:
15-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1615

1716
steps:
1817
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)