-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.24 KB
/
pull-request.yml
File metadata and controls
52 lines (45 loc) · 1.24 KB
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
42
43
44
45
46
47
48
49
50
51
52
name: PR
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
pull-requests: write
checks: read
jobs:
test-robot-remove:
name: Job
uses: ./.github/workflows/test-robot-remove.yml
with:
label-test-robot-done: test-robot-done
label-test-robot-needed: test-robot-needed
secrets:
token: ${{ secrets.BOT_REPO_TOKEN }}
build:
needs: test-robot-remove
if: ${{ !failure() && !cancelled() && needs.test-robot-remove.result != 'failure' }}
name: Job
uses: ./.github/workflows/build.yml
# runs-on: ubuntu-latest
# name: Build
# steps:
# - run: echo "Build step - replace with actual build commands"
test-robot-check:
needs: build
if: ${{ !cancelled() }}
name: Job
uses: ./.github/workflows/test-robot-check.yml
with:
label-test-robot-done: test-robot-done
label-test-robot-needed: test-robot-needed
secrets:
token: ${{ secrets.BOT_REPO_TOKEN }}
all-green:
needs: test-robot-check
if: ${{ !cancelled() }}
name: Job
uses: ./.github/workflows/all-green.yml