File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,14 @@ jobs:
33
33
# GUARD if only the `info.plist` was updated, it's due to formatting changes
34
34
# and there is not actual update to be made.
35
35
updated_files=$(git diff --name-only)
36
- [[ ! "$updated_files" =~ keyword-slug-map ]] && exit 0
36
+ if ! echo "$updated_files" | grep -q "devdocs-keyword-slug-map"; then
37
+ echo "No changes to commit."
38
+ exit 0
39
+ fi
37
40
38
41
# determine what changes occurred and add them to the commit message
39
42
changes=$(
40
- git diff .github/ keyword-slug-map.json |
43
+ git diff **/devdocs- keyword-slug-map.json |
41
44
tail +6 | # remove diff header
42
45
grep "^+" | # only added lines
43
46
cut -d'"' -f4 | # only changed value
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ async function run() {
90
90
// keyword-slug-map
91
91
if ( ! fs . existsSync ( "./.github/caches/" ) ) fs . mkdirSync ( "./.github/caches/" , { recursive : true } ) ;
92
92
const beautifiedForBetterDiff = JSON . stringify ( allLangs , null , 2 ) ;
93
- fs . writeFileSync ( "./.github/caches/keyword-slug-map.json" , beautifiedForBetterDiff ) ;
93
+ fs . writeFileSync ( "./.github/caches/devdocs- keyword-slug-map.json" , beautifiedForBetterDiff ) ;
94
94
95
95
// info.plist: update to insert all languages as options
96
96
/** @type {string[] } */
You can’t perform that action at this time.
0 commit comments