From 59db4182e66e76fe3d42c37501f46d8c95127c17 Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Wed, 22 Dec 2021 13:17:09 +0300 Subject: [PATCH] Fix update example.env job --- .github/workflows/build_stable.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_stable.yml b/.github/workflows/build_stable.yml index 5312832b..8bb4a911 100644 --- a/.github/workflows/build_stable.yml +++ b/.github/workflows/build_stable.yml @@ -70,19 +70,22 @@ jobs: - name: Get latest versions run: python3 ./.github/scripts/get_latest_tags.py --repo erpnext --version 13 - - name: Update example.env + - name: Update run: python3 ./.github/scripts/update_example_env.py - - name: Setup Git Credentials + - name: Push run: | git config --global user.name github-actions git config --global user.email github-actions@github.com - - - name: Commit and push - run: | git add example.env - git commit -m "chore: Update `example.env`" - git push origin main + if [ -z "$(git status --porcelain)" ]; then + echo "example.env did not change, exiting." + exit 0 + else + echo "example.env changed, pushing changes..." + git commit -m "chore: Update example.env" + git push origin main + fi release_helm: runs-on: ubuntu-latest