File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 99
99
before_script :
100
100
- |
101
101
if ! git diff --name-only "$TRAVIS_COMMIT_RANGE" -- | grep -Eq "Dockerfile$"; then
102
- echo "Skip deployment as none of the Dockerfiles has been changed."
103
- exit
102
+ if git diff --name-only "$TRAVIS_COMMIT_RANGE" -- | grep -Eq "^generate-stackbrew-library.sh$"; then
103
+ if ! git diff "$TRAVIS_COMMIT_RANGE" -- generate-stackbrew-library.sh | grep -Eq '^[-+]array_[0-9]'; then
104
+ echo "Skip deployment as none of the Dockerfiles and version tag array in generate-stackbrew-library.sh has been changed."
105
+ exit
106
+ fi
107
+ else
108
+ echo "Skip deployment as none of the Dockerfiles and generate-stackbrew-library.sh has been changed."
109
+ exit
110
+ fi
104
111
fi
105
112
script :
106
113
- ./generate-stackbrew-pr.sh "$TRAVIS_COMMIT_RANGE"
Original file line number Diff line number Diff line change 97
97
before_script:
98
98
- |
99
99
if ! git diff --name-only "$TRAVIS_COMMIT_RANGE" -- | grep -Eq "Dockerfile$"; then
100
- echo "Skip deployment as none of the Dockerfiles has been changed."
101
- exit
100
+ if git diff --name-only "$TRAVIS_COMMIT_RANGE" -- | grep -Eq "^generate-stackbrew-library.sh$"; then
101
+ if ! git diff "$TRAVIS_COMMIT_RANGE" -- generate-stackbrew-library.sh | grep -Eq '^[-+]array_[0-9]'; then
102
+ echo "Skip deployment as none of the Dockerfiles and version tag array in generate-stackbrew-library.sh has been changed."
103
+ exit
104
+ fi
105
+ else
106
+ echo "Skip deployment as none of the Dockerfiles and generate-stackbrew-library.sh has been changed."
107
+ exit
108
+ fi
102
109
fi
103
110
script:
104
111
- ./generate-stackbrew-pr.sh "$TRAVIS_COMMIT_RANGE"
You can’t perform that action at this time.
0 commit comments