Skip to content

Commit c991589

Browse files
committed
add actions
1 parent 4a72a1f commit c991589

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Container image that runs your code
2+
FROM alpine:3.10
3+
4+
# Copies your code file from your action repository to the filesystem path `/` of the container
5+
COPY entrypoint.sh /entrypoint.sh
6+
7+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
8+
ENTRYPOINT ["/entrypoint.sh"]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'build JMS tool'
2+
description: 'Build JMS tool'
3+
inputs:
4+
who-to-greet: # id of input
5+
description: 'Who to greet'
6+
required: true
7+
default: 'World'
8+
outputs:
9+
time: # id of output
10+
description: 'The time we greeted you'
11+
runs:
12+
using: 'docker'
13+
image: 'Dockerfile'
14+
args:
15+
- ${{ inputs.who-to-greet }}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh -l
2+
3+
echo "Hello $1"
4+
time=$(date)
5+
echo "::set-output name=time::$time"

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
# This workflow contains a single job called "build"
1616
build:
17+
name: Build
1718
# The type of runner that the job will run on
1819
runs-on: ubuntu-latest
1920

@@ -24,4 +25,6 @@ jobs:
2425
uses: actions/checkout@v2
2526

2627
- name: Make binaries
27-
uses: sosedoff/actions/golang-build@master
28+
uses: ./.github/actions/build-action
29+
with:
30+
who-to-greet: 'JMS tool build! '

0 commit comments

Comments
 (0)