summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-02-23 19:26:57 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-02-23 19:26:57 +0530
commit298c19307b68da9127328b0058c16747a2b7069e (patch)
tree32780fb9a1b782dc32f0bdc1ea0e4b6fd2023fad /.github
parentca982c00006fedd7feaee5e65147c09b0ab1b426 (diff)
fix(ci): improve check for uncommitted changes
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/sync_crowdin.yml4
-rw-r--r--.github/workflows/update_publicsuffix_data.yml4
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/sync_crowdin.yml b/.github/workflows/sync_crowdin.yml
index 9594985f..57ee33d3 100644
--- a/.github/workflows/sync_crowdin.yml
+++ b/.github/workflows/sync_crowdin.yml
@@ -27,8 +27,8 @@ jobs:
CROWDIN_PROJECT_KEY: ${{ secrets.CROWDIN_PROJECT_KEY }}
CROWDIN_PROJECT_IDENTIFIER: ${{ secrets.CROWDIN_PROJECT_IDENTIFIER }}
- - name: Compare list changes
- run: if [[ $(git diff --stat) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi
+ - name: Check if PR is required
+ run: if [[ $(git status -s) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi
- name: Create Pull Request
id: cpr
diff --git a/.github/workflows/update_publicsuffix_data.yml b/.github/workflows/update_publicsuffix_data.yml
index 3da9126f..ca390984 100644
--- a/.github/workflows/update_publicsuffix_data.yml
+++ b/.github/workflows/update_publicsuffix_data.yml
@@ -23,8 +23,8 @@ jobs:
arguments: updatePSL
gradle-home-cache-cleanup: true
- - name: Compare list changes
- run: if [[ $(git diff --binary --stat) != "" ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi
+ - name: Check if PR is required
+ run: if [[ $(git status -s) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi
- name: Verify update publicsuffixes file
uses: gradle/gradle-build-action@6095a76664413da4c8c134ee32e8a8ae900f0f1f # v2.4.0