-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
57 lines (57 loc) · 1.39 KB
/
action.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
name: "Zeet Run"
description: "Run job on demand with Zeet"
author: "Zeet"
inputs:
api_url:
description: "Zeet API Url"
default: "https://anchor.zeet.co"
required: false
deploy_key:
description: "Zeet deploy key"
required: true
project:
description: "Zeet project name"
required: false
project_id:
description: "Zeet project id"
required: false
command:
description: "Command to run"
required: true
build:
description: "Trigger build or use latest image"
required: false
default: "false"
wait:
description: "Wait till the run finishes"
required: false
default: "false"
outputs:
link:
value: ${{ steps.main.outputs.link }}
description: "Link to job execution"
runs:
using: 'composite'
steps:
- uses: actions/checkout@v3
with:
repository: zeet-co/zeet-run-action
ref: v1
- uses: zeet-dev/action-zeet@main
with:
token: ${{ inputs.deploy_key }}
api_url: ${{ inputs.api_url }}
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
shell: bash
- id: main
run: node dist/index.js
shell: bash
env:
INPUT_PROJECT: ${{ inputs.project }}
INPUT_PROJECT_ID: ${{ inputs.project_id }}
INPUT_COMMAND: ${{ inputs.command }}
INPUT_BUILD: ${{ inputs.build }}
INPUT_WAIT: ${{ inputs.wait }}