File tree Expand file tree Collapse file tree 4 files changed +32
-1
lines changed Expand file tree Collapse file tree 4 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 1+ #! /bin/sh -l
2+
3+ echo " Hello $1 "
4+ time=$( date)
5+ echo " ::set-output name=time::$time "
Original file line number Diff line number Diff line change 1414jobs :
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
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! '
You can’t perform that action at this time.
0 commit comments