From 86fd8cb82e042e6efc3da621548e6c61f3de6e7f Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sun, 17 Mar 2019 10:18:30 -0700 Subject: [PATCH] Update main.workflow --- .github/main.workflow | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 2cb741ef..5cbb0843 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,19 +1,22 @@ workflow "Release" { on = "push" - resolves = ["goreleaser"] + resolves = [ + "goreleaser/goreleaser", + ] } -action "is-tag" { +action "cedrickring/golang-action@1.2.0" { + uses = "cedrickring/golang-action@1.2.0" +} + +action "actions/bin/filter@master" { uses = "actions/bin/filter@master" + needs = ["cedrickring/golang-action@1.2.0"] args = "tag" } -action "goreleaser" { +action "goreleaser/goreleaser" { uses = "docker://goreleaser/goreleaser" - secrets = [ - "GITHUB_TOKEN", - ] - + needs = ["actions/bin/filter@master"] args = "release" - needs = ["is-tag"] }