From f45bf6662b7348cd52a105774238af8e40f0f97a Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Wed, 15 May 2019 11:49:15 -0400 Subject: [PATCH] add precondition check before packaging step --- .github/main.workflow | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 174865ca..3765fb06 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,10 +1,18 @@ workflow "Publish Helm chart" { on = "push" - resolves = ["Helm gh-pages"] + resolves = [ + "Package Helm Chart(s)", + ] } -action "Helm gh-pages" { - uses = "billimek/gh-actions/helm-gh-pages@master" - args = [".", "https://billimek.com/billimek-charts/"] - secrets = ["GITHUB_TOKEN"] +action "Chart.yaml changed?" { + uses = "docker://cdssnc/touched-github-action" + args = "\"{**Chart.yaml}\"" +} + +action "Package Helm Chart(s)" { + uses = "billimek/gh-actions/helm-gh-pages@master" + secrets = ["GITHUB_TOKEN"] + args = "[\".\",\"https://billimek.com/billimek-charts/\"]" + needs = ["Chart.yaml changed?"] }