Improve the gh-actions CD script

This commit is contained in:
Cotes Chung 2021-01-26 23:26:03 +08:00
parent ec522e5219
commit 9ae2aee222

View file

@ -16,7 +16,8 @@ init() {
fi fi
# Gemfile could be changed by `bundle install` in actions workflow # Gemfile could be changed by `bundle install` in actions workflow
if [[ -n $(git status Gemfile.lock --porcelain) ]]; then if [[ -n $(git ls-files | grep Gemfile.lock) && -n \
$(git status Gemfile.lock --porcelain) ]]; then
git checkout -- Gemfile.lock git checkout -- Gemfile.lock
fi fi