This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
forked from nick-fields/persist-action-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.actiongenrc.js
81 lines (81 loc) · 1.96 KB
/
.actiongenrc.js
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
module.exports = {
name: 'Persist Data Between Jobs',
description: {
short: 'Allows data to be shared between jobs and accessed via env variables and step output',
},
inputs: [
{
id: 'data',
description: {
short: 'The data to persist from job',
},
required: false,
},
{
id: 'variable',
description: {
short: 'The variable to be used to access data in other jobs',
},
required: false,
},
{
id: 'retrieve_variables',
description: {
short: 'Comma delimited list of variables to load into job',
},
required: false,
},
],
runs: {
using: 'node12',
main: 'out/index.js',
},
usage: {
examples: [
{
title: 'Example storing data',
codeLanguage: 'yaml',
codeBlock: `
- uses: nick-invision/persist-action-data@v1
with:
data: \${{ steps.some-step.output.some-output }}
variable: SOME_STEP_OUTPUT
`.trim(),
},
{
title: 'Example using data from another job via env variable',
codeLanguage: 'yaml',
codeBlock: `
- uses: nick-invision/persist-action-data@v1
with:
data: \${{ steps.some-step.output.some-output }}
retrieve_variables: SOME_STEP_OUTPUT, SOME_OTHER_STEP_OUTPUT
- run: echo $SOME_STEP_OUTPUT
`.trim(),
},
{
title: 'Example using data from another job via output',
codeLanguage: 'yaml',
codeBlock: `
- uses: nick-invision/persist-action-data@v1
id: global-data
with:
data: \${{ steps.some-step.output.some-output }}
retrieve_variables: SOME_STEP_OUTPUT, SOME_OTHER_STEP_OUTPUT
- run: echo $\{\{ steps.global-data.outputs.SOME_STEP_OUTPUT \}\}
`.trim(),
},
],
},
branding: {
color: 'green',
icon: 'save',
},
badges: [
{
displayedText: 'License: MIT',
badgeUrl: 'https://img.shields.io/badge/license-MIT-brightgreen.svg',
link: 'https://opensource.org/licenses/MIT',
},
],
};