Fix Travis deployment check on cron

This commit is contained in:
Federico Brigante 2017-10-16 13:23:35 +08:00
Родитель a37a31b17d
Коммит 9bdf5cfe9d
2 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -16,4 +16,3 @@ deploy:
# Set to deploy on: cron with recent commits
branch: master
condition: $(npm run can-release --silent)

Просмотреть файл

@ -8,7 +8,7 @@
"release:cws": "cd extension && webstore upload --auto-publish",
"release": "run-s build:minified update-version release:*",
"update-version": "dot-json extension/manifest.json version $(date -u +%y.%-m.%-d.%-H%M)",
"can-release": "if [ \"$TRAVIS_EVENT_TYPE\" = cron ] && [ $(git rev-list -n 1 --since=\"26 hours ago\" master) ]; then true; else false; fi"
"can-release": "if [ \"$TRAVIS_EVENT_TYPE\" = cron ] && [ $(git rev-list -n 1 --since=\"26 hours ago\" master) ]; then echo :ship-it:; else false; fi"
},
"dependencies": {
"copy-text-to-clipboard": "^1.0.3",