Skip to content

Commit 1ea0f5d

Browse files
authored
Merge pull request #12 from jsquyres/pr/github-actions-ci
CI: Add github actions
2 parents 9851fbe + e99741a commit 1ea0f5d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pr-checks.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: GitHub Action CI
2+
3+
# We're using pull_request_target here instead of just pull_request so that the
4+
# action runs in the context of the base of the pull request, rather than in the
5+
# context of the merge commit. For more detail about the differences, see:
6+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
7+
on:
8+
pull_request_target:
9+
# We don't need this to be run on all types of PR behavior
10+
# See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
11+
types:
12+
- opened
13+
- synchronize
14+
- edited
15+
16+
permissions: {} # none
17+
18+
jobs:
19+
check:
20+
permissions:
21+
pull-requests: write
22+
name: Check Commits
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Pull Request Commit Checker
26+
uses: open-mpi/[email protected]
27+
with:
28+
token: "${{ secrets.GITHUB_TOKEN}}"
29+
cherry-pick-required: false

0 commit comments

Comments
 (0)