File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Add new PRs to github project
2+
3+ on :
4+ pull_request_target :
5+ types :
6+ - opened
7+ - ready_for_review
8+
9+ permissions : {}
10+
11+ jobs :
12+ addprtoproject :
13+ name : Add PR to GitHub Project
14+ # Only run on the silverstripe account
15+ if : github.repository_owner == 'silverstripe'
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Add PR to github project
19+ uses : silverstripe/gha-add-pr-to-project@v1
20+ with :
21+ app_id : ${{ vars.PROJECT_PERMISSIONS_APP_ID }}
22+ private_key : ${{ secrets.PROJECT_PERMISSIONS_APP_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 88jobs :
99 ci :
1010 name : CI
11+ # Do not run if this is a pull-request from same repo i.e. not a fork repo
12+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1113 uses : silverstripe/gha-ci/.github/workflows/ci.yml@v1
You can’t perform that action at this time.
0 commit comments