Less changes in PR (#724)
* remove .js dir * update .gitigore * remove .dist * fix: remove EOL * clean up json_plugins * add host bash file * fix: no need to run json * add all files after merge * fix: remove run json from pre-commit * fix: not need to run git in npm json * add delay to debug * fix: git add command * fix: typo * update github actions * fix: missing checkout action * fix: make .sh executable * update readme * fix: git config * fix: action condition
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
current=`git rev-parse --abbrev-ref HEAD`
|
||||
dist=dist
|
||||
exists=`git show-ref refs/heads/$dist`
|
||||
|
||||
if [ -n "$exists" ]; then
|
||||
git checkout $dist
|
||||
else
|
||||
git checkout -b $dist
|
||||
fi
|
||||
|
||||
git merge $current --strategy-option theirs
|
||||
|
||||
npm run generate
|
||||
npm run json
|
||||
git add .
|
||||
git add -f .dist .js/plugins
|
||||
git commit -m "Update plugins host"
|
||||
git push -f origin $dist
|
||||
|
||||
git checkout $current
|
||||
Reference in New Issue
Block a user