-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
120 lines (108 loc) · 3.63 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: run .travis.yml
author: Tom Klingenberg <https://github.com/ktomk>
description: |
Run `.travis.yml` build job Steps/Stages (Travis-CI) as Github
Action (Github).
branding:
color: yellow
icon: shuffle
inputs:
file:
description: |
Path to `.travis.yml` file. Leave empty / unset for default
`.travis.yml`. Relative to project root. Overrides the
`TRAVIS_YAML_FILE` environment variable if non-empty.
default: ''
required: false
steps:
description: |
Space separated list of steps to run. Leave empty
/ unset to run all custom steps.
default: ''
required: true
stages:
description: |
Deprecated: Space separated list of steps to run
(originally misnamed stages). Leave empty / unset to run
all custom steps. Use `inputs.steps` instead. Note:
`input.stages` might be re-used for different or just error
in a future version; change early.
default: ''
required: true
allow-failure:
description: |
Allow the .travis.yml build to fail. Possible values are
`true` and `false`. Overrides the `TRAVIS_ALLOW_FAILURE`
environment variable if set.
default: ''
required: false
allow_failure:
description: alias of `allow-failure`
default: ''
required: false
run-job:
description: |
Name of the run-job. Possible values are the ones the
plan is listing. By default, the original root step-scripts
are in use. If a job has a name, it can be used as well.
default: ''
required: false
run_job:
description: alias of `run-job`
default: ''
required: false
dry-run-job:
description: |
Dry-run the run-job. Possible values are `true` and
`false`.
default: ''
required: false
dry_run_job:
description: alias of `dry-run-job`
default: ''
required: false
outputs:
test-result:
description: |
Outcome of `TRAVIS_TEST_RESULT`, either `0` if all commands
in the `script` section have exited with zero or `1`
otherwise.
value: ${{ steps.travis-build-sh.outputs.exit-status }}
test_result:
description: alias of `test-result`
value: ${{ steps.travis-build-sh.outputs.exit-status }}
conclusion:
description: |
The result of the .travis.yml build after `allow_failure`
/ `TRAVIS_ALLOW_FAILURE` is applied. Possible values
are `success` or `failure`.
value: ${{ steps.travis-build-sh.outputs.conclusion }}
outcome:
description: |
The result of the .travis.yml build before `allow_failure`
/ `TRAVIS_ALLOW_FAILURE` is applied. Possible values
are `success` or `failure`.
value: ${{ steps.travis-build-sh.outputs.outcome }}
runs:
using: composite
steps:
- id: travis-build-sh
shell: bash
run: |
: [1/3] action binding
. "$GITHUB_ACTION_PATH"/lib/binding.sh
: [2/3] register action context
reg allow_failure "${{ inputs.allow-failure }}"
reg allow_failure "${{ inputs.allow_failure }}"
reg dry_run_job "${{ inputs.dry-run-job }}"
reg dry_run_job "${{ inputs.dry_run_job }}"
reg event_name "${{ github.event_name }}"
reg event_number "${{ github.event.number }}"
reg repository "${{ github.repository }}"
reg run_job "${{ inputs.run-job }}"
reg run_job "${{ inputs.run_job }}"
reg travis_file "${{ inputs.file }}"
reg travis_steps "${{ inputs.steps }}"
reg travis_steps "${{ inputs.stages }}"
: [3/3] action
. "$GITHUB_ACTION_PATH"/action.sh