forked from Java-Techie-jt/github-actions-example
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 799 Bytes
/
Build.yml
File metadata and controls
38 lines (29 loc) · 799 Bytes
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
name: workflow
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: '1.8'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn clean install
- name: Invoke echo 1 workflow using this action
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Message Echo 1
token: ${{ secrets.PERSONAL_TOKEN }}
inputs: '{"message": "blah blah"}'
- name: Invoke echo 2 workflow using this action
uses: benc-uk/workflow-dispatch@v1
with:
workflow: echo-2.yaml
token: ${{ secrets.PERSONAL_TOKEN }}