-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new actions
git-sync-submodule
and npm-install
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Git sync submodule | ||
description: Git sync submodule | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Git sync submodule | ||
shell: bash | ||
run: | | ||
git submodule deinit --all -f | ||
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | | ||
while read path_key path | ||
do | ||
rm -rf $path | ||
git submodule update --recursive --init $path | ||
git submodule update --recursive --remote $path | ||
git add . | ||
echo "${path} submodule update: " | ||
ls -la $path | ||
echo "" | ||
done | ||
if [[ `git status --porcelain` ]]; then | ||
echo "We have new hash from git submodule" | ||
else | ||
echo "Nothing to update" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: NPM install | ||
description: NPM install | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Run npm install | ||
shell: bash | ||
run: | | ||
echo "Run npm install..." | ||
rm -rf package-lock.json node_modules | ||
npm install --force --loglevel error --audit=false --fund=false | ||
git add . |