-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (29 loc) · 960 Bytes
/
maven.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
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
# - name: Build with Maven
# run: mvn -B package --file pom.xml
my_hello_world_job: # this job uses my custom github action. (my-hello-world-docker-action folder)
runs-on: ubuntu-latest
name: A job to say hello using a custom github action that I create
steps:
- name: Checkout
uses: actions/checkout@v2
- name: set chmod for entrypoint file
run: chmod +x ./my-hello-world-docker-action/entrypoint.sh
- name: hello world
id: hello
uses: ./my-hello-world-docker-action
with:
who-to-greet: 'Mona the Octocat'
# Use the output from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"