Skip to content

Commit efe1c13

Browse files
committed
actions
1 parent 7538973 commit efe1c13

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
name: 'build JMS tool'
22
description: 'Build JMS tool'
33
inputs:
4-
who-to-greet: # id of input
5-
description: 'Who to greet'
4+
go-version: # id of input
5+
description: 'go version'
66
required: true
7-
default: 'World'
7+
default: '1.14'
8+
go-os:
9+
description: 'build os'
10+
required: true
11+
default: 'linux'
12+
go-arch:
13+
description: 'build arch'
14+
required: true
15+
default: 'amd64'
816
outputs:
917
time: # id of output
1018
description: 'The time we greeted you'
1119
runs:
1220
using: 'docker'
1321
image: 'Dockerfile'
1422
args:
15-
- ${{ inputs.who-to-greet }}
23+
- ${{ inputs.go-version }}
24+
- ${{ inputs.go-os }}
25+
- ${{ inputs.go-arch }}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh -l
22

3-
echo "Hello $1"
3+
echo "当前目录: ${pwd}"
4+
ls "${pwd}"
5+
echo "Hello $1 $2 $3"
46
time=$(date)
57
echo "::set-output name=time::$time"

0 commit comments

Comments
 (0)