mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
Add loggin
This commit is contained in:
parent
69ac257acc
commit
86c82e43f7
1 changed files with 7 additions and 0 deletions
7
.github/scripts/update-npm.sh
vendored
7
.github/scripts/update-npm.sh
vendored
|
@ -7,18 +7,25 @@ npm i -g npm-check-updates
|
||||||
pushd dependencies
|
pushd dependencies
|
||||||
|
|
||||||
# Update all dependencies
|
# Update all dependencies
|
||||||
|
echo "Installing NPM dependencies..."
|
||||||
|
npm install
|
||||||
|
echo "Updating NPM dependencies..."
|
||||||
ncu -u
|
ncu -u
|
||||||
|
echo "Installing NPM dependencies..."
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
# Setup Git Config
|
# Setup Git Config
|
||||||
|
echo "Configuring Git..."
|
||||||
git config --global user.email "noreply@github.com"
|
git config --global user.email "noreply@github.com"
|
||||||
git config --global user.name "Super-Linter Automation"
|
git config --global user.name "Super-Linter Automation"
|
||||||
|
|
||||||
# Push changes to remote
|
# Push changes to remote
|
||||||
|
echo "Pushing changes to remote..."
|
||||||
git add .
|
git add .
|
||||||
git commit -a -Ss -m "Update NPM dependencies"
|
git commit -a -Ss -m "Update NPM dependencies"
|
||||||
git checkout -b "npm_deps_${id}"
|
git checkout -b "npm_deps_${id}"
|
||||||
git push origin "npm_deps_${id}"
|
git push origin "npm_deps_${id}"
|
||||||
|
|
||||||
# Open pull request
|
# Open pull request
|
||||||
|
echo "Opening pull request..."
|
||||||
gh pr create --title "Weekly NPM Updates" --body "Updates NPM dependencies" --base master --head "npm_deps_${id}"
|
gh pr create --title "Weekly NPM Updates" --body "Updates NPM dependencies" --base master --head "npm_deps_${id}"
|
||||||
|
|
Loading…
Reference in a new issue