From 2dd8ba425be80bccb6bf353426ea59367861f909 Mon Sep 17 00:00:00 2001 From: Jeff Hutchison Date: Sun, 20 Jan 2019 10:03:52 -0500 Subject: [PATCH] Add github actions --- .github/main.workflow | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 00000000..c944e83d --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,24 @@ +workflow "check build on push" { + on = "push" + resolves = ["gradle build"] +} + +action "gradle build" { + uses = "MrRamych/gradle-actions@12909e7ccd3ed7e3b39c2f3ac350d6849eabeaf3" + args = "build" +} + +workflow "process pull request" { + on = "pull_request" + resolves = ["post gif on fail", "branch cleanup"] +} + +action "post gif on fail" { + uses = "jessfraz/shaking-finger-action@master" + secrets = ["GITHUB_TOKEN"] +} + +action "branch cleanup" { + uses = "jessfraz/branch-cleanup-action@master" + secrets = ["GITHUB_TOKEN"] +}