-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
52 lines (52 loc) · 1.51 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
name: Nomad Logs Action
description: |
Collects Hashicorp Nomad logs from a given job.
branding:
icon: activity
color: green
author: Jeremy Reisser
inputs:
token:
description: "Token used to authenticate with a nomad server"
required: true
address:
description: "Address of the nomad server"
required: true
namespace:
description: "Namespace of the nomad job"
required: false
job:
description: "Name of the nomad job"
required: true
parameterized:
description: "Set to true if the nomad job is parameterized"
required: false
default: "false"
allow-stderr:
description: "Set to true so that the action completes successfully if logs are detected on stderr"
required: false
default: "false"
proxyAddress:
description: "Address of the proxy server"
required: false
outputs:
status:
description: "Indicates the success or failure of the running tasks"
value: ${{ steps.run.outputs.status }}
content:
description: "Displays the task logs from stdout or stderr"
value: ${{ steps.run.outputs.content }}
runs:
using: "composite"
steps:
- id: run
run: ${{ github.action_path }}/status.sh
shell: bash
env:
NOMAD_TOKEN: ${{ inputs.token }}
NOMAD_ADDR: ${{ inputs.address }}
NOMAD_JOB: ${{ inputs.job }}
NOMAD_NAMESPACE: ${{ inputs.namespace }}
PARAMETERIZED_JOB: ${{ inputs.parameterized }}
ALLOW_STDERR: ${{ inputs.allow-stderr }}
http_proxy: ${{ inputs.proxyAddress }}