Skip to content

Commit

Permalink
ci: fix git diff command
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 13, 2024
1 parent eb5d5b1 commit 8a00139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
if: github.event_name == 'pull_request_target'
run: |
git fetch origin "${{ github.base_ref }}" --depth=1
echo "RUN_LINT=$(npm run git:diff-files-yn 'origin/${{ github.base_ref }}' 'app/' 'i18n/' 'gradle/')" >> $GITHUB_ENV
echo "RUN_LINT=$(npm run --silent git:diff-files-yn 'origin/${{ github.base_ref }}' 'app/' 'i18n/' 'gradle/')" >> $GITHUB_ENV
- name: 🚨 Analyze code
if: env.RUN_LINT == 'no'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/i18n-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: github.event_name == 'pull_request_target'
run: |
git fetch origin "${{ github.base_ref }}" --depth=1
echo "PR_COMMENT=$(npm run git:diff-files-yn 'origin/${{ github.base_ref }}' '.phrasey/' 'i18n/')" >> $GITHUB_ENV
echo "PR_COMMENT=$(npm run --silent git:diff-files-yn 'origin/${{ github.base_ref }}' '.phrasey/' 'i18n/')" >> $GITHUB_ENV
- name: 💬 Comment summary
if: github.event_name == 'pull_request_target' && env.PR_COMMENT == 'yes'
Expand Down

0 comments on commit 8a00139

Please sign in to comment.