From 65603861a8d87abad1b3ed920d9065cf3b673520 Mon Sep 17 00:00:00 2001 From: DARSAN Date: Wed, 14 Aug 2024 00:21:09 +0530 Subject: [PATCH] End-User meta workflow updated --- .github/workflows/consistent-desc.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/consistent-desc.yaml b/.github/workflows/consistent-desc.yaml index c44ed44..91cd371 100644 --- a/.github/workflows/consistent-desc.yaml +++ b/.github/workflows/consistent-desc.yaml @@ -41,8 +41,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add package.json - git commit -m 'End-User Meta updated' - git push + if [ -f "package.json" ]; then + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add package.json + git commit -m 'End-User Meta updated' + git push + fi