File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
name : Add issues and pull request to project boards
6
6
7
- on : [ issues, pull_request ]
7
+ on : [issues, pull_request, pull_request_target ]
8
8
9
9
jobs :
10
10
github-actions-automate-projects :
11
11
runs-on : ubuntu-latest
12
+
13
+ if : ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
12
14
steps :
13
15
- name : add-new-issues-to-repository-based-project-column
14
16
uses : docker://takanabe/github-actions-automate-projects:v0.0.1
19
21
GITHUB_PROJECT_COLUMN_NAME : To do
20
22
- name : add-new-pull-request-to-repository-based-project-column
21
23
uses : docker://takanabe/github-actions-automate-projects:v0.0.1
22
- if : github.event_name == 'pull_request' && github.event.action == 'opened'
24
+ if : ( github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
23
25
env :
24
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
27
GITHUB_PROJECT_URL : https://github.com/com-pas/compas-deployment/projects/1
33
35
GITHUB_PROJECT_COLUMN_NAME : To do
34
36
- name : add-new-pull-request-to-organization-based-project-column
35
37
uses : docker://takanabe/github-actions-automate-projects:v0.0.1
36
- if : github.event_name == 'pull_request' && github.event.action == 'opened'
38
+ if : ( github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
37
39
env :
38
40
GITHUB_TOKEN : ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
39
41
GITHUB_PROJECT_URL : https://github.com/orgs/com-pas/projects/2
You can’t perform that action at this time.
0 commit comments