forked from IntuitionMachines/python-coverage-comment-action
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 876 Bytes
/
e2e-external-phase-1.yml
File metadata and controls
28 lines (26 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Trigger end-to-end tests on external PR approval
on:
pull_request_review:
types: [submitted]
jobs:
test:
name: Trigger end-to-end tests
# If reviewed by a repo(/org) owner
if: |
github.event.pull_request.author_association != 'MEMBER'
&& (
contains(fromJson('["OWNER", "MEMBER"]'), github.event.review.author_association)
)
&& github.event.review.state == 'approved'
&& contains(github.event.review.body, '/e2e')
runs-on: ubuntu-latest
steps:
- name: Store PR number in a file
run: echo "PR_NUMBER=${PR_NUMBER}" > pr_number.txt
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Save artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: pr_number
path: pr_number.txt