From a2d01337d3f0ef9a00add9f6154cd777fe63b6a7 Mon Sep 17 00:00:00 2001 From: sandeep Date: Fri, 18 Feb 2022 12:08:36 +0530 Subject: [PATCH] workflow update --- .github/workflows/new-templates.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/new-templates.yml b/.github/workflows/new-templates.yml index 428c51ed74..f599b1355c 100644 --- a/.github/workflows/new-templates.yml +++ b/.github/workflows/new-templates.yml @@ -22,6 +22,7 @@ jobs: git diff --name-only --diff-filter=A $(git tag | tail -n 1) @ . | grep .yaml | tee .new-additions - name: Commit files + if: steps.new-additions.outputs.changes > 0 run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" @@ -29,6 +30,7 @@ jobs: git commit -m "Auto Generated New Template Addition List [$(date)] :robot:" -a - name: Push changes + if: steps.new-additions.outputs.changes > 0 uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}