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