From 3b66974566b2a3dfbba8cb2cdd918fa12c346fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Wed, 17 Apr 2019 10:34:07 +0200 Subject: [PATCH] Test actions --- .github/npmbuildandcommit.workflow | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/npmbuildandcommit.workflow diff --git a/.github/npmbuildandcommit.workflow b/.github/npmbuildandcommit.workflow new file mode 100644 index 000000000..32d9edea4 --- /dev/null +++ b/.github/npmbuildandcommit.workflow @@ -0,0 +1,33 @@ +workflow "On comment" { + resolves = ["Status"] + on = "issue_comment" +} + +action "Is pull request" { + uses = "actions/bin/filter@master" + args = "branch *" +} + +action "Check command" { + needs = "Is pull request" + uses = "actions/bin/filter@master" + args = "issue_comment build and commit /*" +} + +action "Npm install" { + needs = "Check command" + uses = "actions/npm@master" + args = "install" +} + +action "Npm build" { + needs = "Npm install" + uses = "actions/npm@master" + args = "run build" +} + +action "Status" { + needs = "Npm build" + uses = "srt32/git-actions@v0.0.3" + args = "git status" +}