-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
56 lines (55 loc) · 1.69 KB
/
action.yml
File metadata and controls
56 lines (55 loc) · 1.69 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
name: 'Nx distributed task'
branding:
icon: command
color: white
author: 'e-square.io'
description: 'Executes Nx task'
inputs:
target:
description: 'Target to run'
required: true
projects:
description: 'Comma-delimited list of projects to run against target'
required: false
default: ''
distribution:
description: 'Current distribution run, required when running in a matrix'
required: false
deprecationMessage: 'deprecated, not used anymore'
bucket:
description: 'Current distribution run, required when running in a matrix'
required: false
deprecationMessage: 'deprecated, not used anymore'
maxParallel:
description: 'Maximum NX cli parallel runs'
required: false
default: '3'
uploadOutputs:
description: "Should upload target's outputs from all distributed jobs"
required: false
default: 'true'
args:
description: 'space-delimited args to add to nx command execution'
required: false
nxCloud:
description: 'Enable support of Nx Cloud'
required: false
default: 'false'
workingDirectory:
description: 'Path to the Nx workspace, needed if not the repository root'
required: false
debug:
description: 'Enable Debug mode. Will not execute the target'
required: false
default: 'false'
runs:
using: 'composite'
steps:
- name: Execute target
uses: actions/github-script@v6
with:
script: |
const { default: setEnv } = require('${{ github.action_path }}/set-env.js');
const { default: main } = require('${{ github.action_path }}/main.js');
setEnv(${{ toJSON(inputs) }}, process);
await main(context, core, exec, glob, __original_require__);