File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -18,22 +18,12 @@ git checkout -- src/pages/postgraphile/usage-*.md
18
18
if [ " $GITHUB_TOKEN " != " " ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_BRANCH " == " develop" ]; then
19
19
echo " GITHUB_TOKEN is specified"
20
20
21
- if ! git diff-index --exit-code --name-only HEAD --; then
21
+ # git diff-index only looks at modified timestamps; this 'git status' call
22
+ # forces git to recognise that certain files are unmodified.
23
+ git status
24
+ if ! git diff-index --exit-code --name-status HEAD --; then
22
25
echo " But first; there were changes so lets try and push those back to 'develop'"
23
- set -x
24
- # Checkout new branch so we're not in 'detatched head' mode
25
- git checkout -b ci/$( date +" %Y%m%d_%H%M%S" )
26
- git status
27
-
28
26
git add -u
29
-
30
- git status
31
-
32
- # Workaround issue on Travis CI
33
- git add .cachedValidUrls.json
34
-
35
- git status
36
-
37
27
git commit -m" Fixes from CI"
38
28
39
29
# I really hope this doesn't cause an infinite CI loop
You can’t perform that action at this time.
0 commit comments