-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.01 KB
/
e2e.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
name: E2E
on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited
jobs:
e2e-default:
runs-on: ubuntu-20.04
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Test Run
id: test-run
uses: ./
- name: Check labels
id: check-labels
working-directory: .github/.scripts
run: echo "added_labels=$(./check_added_labels.sh)" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository_owner }}/${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}
- name: Assert current and expected labels
uses: nick-fields/assert-action@v2
with:
actual: ${{ steps.check-labels.outputs.added_labels }}
expected: ${{ steps.test-run.outputs.labels_to_add }}