aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-12-16 13:27:16 +0100
committerLinnea Gräf <nea@nea.moe>2023-12-16 13:34:32 +0100
commit65cc26377e8ea4eb9614951f106381dd6c4a6ecc (patch)
treeb9cfcc69681e8d410ddc86e1f864091947410c65 /.github/workflows
parent7e20caecf45ed273ac6c030a4f2bcc16eec5f1ce (diff)
downloadSkyHanni-dontalwayspushrepo.tar.gz
SkyHanni-dontalwayspushrepo.tar.bz2
SkyHanni-dontalwayspushrepo.zip
Add check for new regexes before updating repodontalwayspushrepo
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/generate-constants.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/generate-constants.yaml b/.github/workflows/generate-constants.yaml
index 9df66081c..fccadc7fb 100644
--- a/.github/workflows/generate-constants.yaml
+++ b/.github/workflows/generate-constants.yaml
@@ -51,6 +51,12 @@ jobs:
- name: Commit generated regex
run: |
mkdir -p constants/
+ new_cmp="$(jq -S '.regexes' < constants.json)"
+ old_cmp="$(jq -S '.regexes' < constants/regexes.json)"
+ if [ "$new_cmp" = "$old_cmp" ]; then
+ echo Old and new are the same. We are in a never ending loop.
+ exit 0
+ fi
mv constants.json constants/regexes.json
git config user.name 'github-actions[bot]'
git config user.email 'github-action@users.noreply.github.com'