File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4
4
types : [opened, reopened]
5
5
6
6
env :
7
+ EXTERNAL_PR_LABEL : external-contributor
7
8
PROJECT_URL : https://github.com/orgs/stackrox/projects/3 # Test board for PR automation
8
9
# PROJECT_URL: https://github.com/orgs/stackrox/projects/2 # OSS Triaging board
9
10
@@ -18,19 +19,24 @@ jobs:
18
19
outputs :
19
20
is_external_pr : ${{ steps.check-external-pr.outputs.is_external_pr }}
20
21
steps :
22
+ - name : Check out code
23
+ uses : actions/checkout@v3
21
24
- id : check-external-pr
22
25
run : |
23
26
set -uo pipefail
24
27
if [[ $BASE_REPO != $HEAD_REPO ]]; then
25
28
echo "::set-output name=is_external_pr::true"
29
+ gh pr edit \
30
+ ${{ github.event.pull_request.number }} \
31
+ --add-label ${EXTERNAL_PR_LABEL}
26
32
else
27
33
echo "::set-output name=is_external_pr::false"
28
34
fi
29
35
30
36
add-to-project :
31
37
name : Add pull request to project
32
38
runs-on : ubuntu-latest
33
- needs : [check-pr-if-externall ]
39
+ needs : [check-pr-if-external ]
34
40
if : needs.check-pr-if-external.outputs.is_external_pr == 'true'
35
41
steps :
36
42
- uses : actions/add-to-project@v0.3.0
You can’t perform that action at this time.
0 commit comments