-
Notifications
You must be signed in to change notification settings - Fork 49
66 lines (58 loc) · 1.97 KB
/
on-pull-request-label.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
name: PR label
on:
pull_request:
types: [labeled]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: false
jobs:
get-featurenet-name:
name: Get featurenet name
runs-on: ubuntu-20.04
outputs:
name: ${{ steps.get-argocd-featurenet-app-name.outputs.name }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Get branch name and commit SHA
id: get-ref-properties
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v2
- name: Get argocd featurenet app name
id: get-argocd-featurenet-app-name
shell: bash
env:
# yamllint disable-line rule:line-length
FE_NAME: ${{ steps.get-ref-properties.outputs.branch-name-for-argo }}
run: |
name_local=${{ env.FE_NAME }}
echo "name=$name_local" >> $GITHUB_OUTPUT
create-featurenet:
if: github.event.label.name == 'trigger:create-featurenet'
needs: [get-featurenet-name]
name: Create featurenet
uses: ./.github/workflows/featurenet-create-from-branch.yml
with:
featurenet-name: ${{ needs.get-featurenet-name.outputs.name }}
secrets: inherit
delete-featurenet:
if: >
(github.event.label.name == 'trigger:delete-featurenet') ||
(
github.event.action == 'closed' &&
!contains(github.event.pull_request.labels.*.name, 'state:deleted-featurenet') &&
contains(github.event.pull_request.labels.*.name, 'state:created-featurenet')
)
needs: [get-featurenet-name]
name: Delete featurenet
uses: ./.github/workflows/featurenet-delete.yml
with:
featurenet-name: ${{ needs.get-featurenet-name.outputs.name }}
secrets: inherit
run-e2e-button-contracts-tests:
if: github.event.label.name == 'trigger:run-button-e2e-tests'
name: Run e2e button game contract tests
uses: ./.github/workflows/_run-button-e2e-tests.yml
with:
deploy: false
secrets: inherit