-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
63 lines (62 loc) · 2.14 KB
/
Copy pathaction.yml
File metadata and controls
63 lines (62 loc) · 2.14 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
53
54
55
56
57
58
59
60
61
62
name: Setup CI
description: This is a GitHub Action designed to automate the CI setup for Nullplatform
inputs:
api-key:
description: The API key required for authentication
required: false
status:
description: The status to set for the CI setup
required: false
default: pending
monorepo:
description: Indicates if the repository follows a monorepo structure
required: false
default: false
applications-path:
description: The path to the applications within the repository
required: false
application-id:
description: The ID of the application being set up
required: false
build-id:
description: The ID of the build launched by the CI
required: false
outputs:
application-id:
description: The ID of the application being set up
value: ${{ steps.ci-setup.outputs.application-id }}
application-name:
description: The name of the application being set up
value: ${{ steps.ci-setup.outputs.application-name }}
application-path:
description: The path to the applications within the repository
value: ${{ steps.ci-setup.outputs.application-path }}
build-id:
description: The ID of the build launched by the CI
value: ${{ steps.ci-setup.outputs.build-id }}
applications:
description: The applications to being set up
value: ${{ steps.ci-setup-multiple.outputs.applications }}
runs:
using: composite
steps:
- if: ${{ !env.NULLPLATFORM_ACCESS_TOKEN }}
name: Log into nullplatform
id: login
uses: nullplatform/github-action-login@v1
with:
api-key: ${{ inputs.api-key }}
- if: ${{ inputs.monorepo == 'true' }}
name: Setup CI for multiples application
id: ci-setup-multiple
uses: nullplatform/github-action-setup-ci/multi-application@v1
with:
applications-path: ${{ inputs.applications-path }}
- if: ${{ inputs.monorepo != 'true' }}
name: Setup CI for application
id: ci-setup
uses: nullplatform/github-action-setup-ci/single-application@v1
with:
status: ${{ inputs.status }}
build-id: ${{ inputs.build-id }}
application-id: ${{ inputs.application-id }}