Skip to content

Commit 2270855

Browse files
authored
Add PR validation workflow (#85)
1 parent 6f1e1e9 commit 2270855

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/validate_pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# Workflow to validate Pull Request branches
3+
name: PR Validation
4+
5+
# Trigger on PR creation
6+
on:
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- ready_for_review
12+
13+
jobs:
14+
validate_pr:
15+
if: github.event.pull_request.head.repo.owner.login == 'LabKey'
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Validate PR Branches
20+
uses: labkey-tchad/gitHubActions/validate-pr@master
21+
with:
22+
pr_base: ${{ github.event.pull_request.base.ref }}
23+
pr_head: ${{ github.event.pull_request.head.ref }}
24+
pr_number: ${{ github.event.pull_request.number }}
25+
pr_title: ${{ github.event.pull_request.title }}
26+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)