mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-07 16:17:50 +00:00
Improve the gh-actions CD script
This commit is contained in:
parent
ec522e5219
commit
9ae2aee222
@ -16,7 +16,8 @@ init() {
|
||||
fi
|
||||
|
||||
# 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
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user