File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 28
28
if [ $name = " index" ]; then
29
29
git add ' ../docs/dyn/index.md'
30
30
commitmsg=' chore: update docs/dyn/index.md'
31
- else
31
+ elif [[ -f " $API_SUMMARY_PATH " ]] ; then
32
32
git add ' ../googleapiclient/discovery_cache/documents/' $name ' .*.json'
33
33
git add ' ../docs/dyn/' $name ' _*.html'
34
- if [[ -f " $API_SUMMARY_PATH " ]]; then
35
- commitmsg=` cat $API_SUMMARY_PATH `
36
- else
37
- commitmsg=' chore(' $name ' ): update the api'
38
- fi
34
+ commitmsg=` cat $API_SUMMARY_PATH `
35
+ else
36
+ # Do nothing. The files will be included in a bulk commit at the end
37
+ continue
39
38
fi
40
39
git commit -m " $commitmsg "
41
40
git rev-parse HEAD> temp/$name ' .sha'
42
41
git reset
43
42
fi
44
43
done < temp/changed_files
45
44
46
- # Add untracked files
45
+ # Add untracked files and files with minor updates
47
46
git add " ../googleapiclient/discovery_cache/documents/*.json"
48
47
git add " ../docs/dyn/*.html"
49
- commitmsg=' chore(docs): Add new discovery artifacts and reference documents '
48
+ commitmsg=' chore(docs): Add new discovery artifacts and artifacts with minor updates '
50
49
git commit -m " $commitmsg "
51
50
52
51
exit 0
You can’t perform that action at this time.
0 commit comments