From 7cc8c30111d751a2ba40789af912f30b26058006 Mon Sep 17 00:00:00 2001 From: Paul Fouquet Date: Fri, 29 Sep 2023 07:48:17 +1300 Subject: [PATCH] ci: re-lint only when push to master --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c65bbedf..2f03cd348 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,6 +77,7 @@ jobs: kubectl apply -f config/*.yml --namespace argo # Re-lint the workflows after deployment because their dependencies is test with deployement. - name: Re-Lint workflows + if: github.ref == 'refs/heads/master' run: | ./argo-linux-amd64 lint templates/ -n argo ./argo-linux-amd64 lint workflows/ -n argo