Skip to content

Commit

Permalink
Make actions run on PRs on forks (#122)
Browse files Browse the repository at this point in the history
* Make actions run on PRs on forks

* Apply suggestions from code review

Co-authored-by: Isaac Virshup <[email protected]>

* Add concurrency rules to actions

---------

Co-authored-by: Robrecht Cannoodt <[email protected]>
  • Loading branch information
ivirshup and rcannood authored Sep 19, 2023
1 parent d1567ae commit 23fc791
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on: push
on:
push:
pull_request:

name: R-CMD-check

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on: push
on:
push:
pull_request:

name: lint

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 23fc791

Please sign in to comment.