Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/group-dependabot-security-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ jobs:
if [ -s deps_to_install.txt ]; then
if [ -f "$project_dir/yarn.lock" ]; then
echo "Using yarn to add/update dependencies in $project_dir..."
# Use $GITHUB_WORKSPACE for an absolute path to the deps file.
(cd "$project_dir" && xargs -n 1 yarn add < "$GITHUB_WORKSPACE/deps_to_install.txt")
# Remove -n 1 to run yarn add only once with all dependencies.
(cd "$project_dir" && xargs yarn add < "$GITHUB_WORKSPACE/deps_to_install.txt")
git add "$project_dir/yarn.lock"
else
echo "Using npm to install/update dependencies in $project_dir..."
# Use $GITHUB_WORKSPACE for an absolute path to the deps file.
(cd "$project_dir" && xargs -n 1 npm install < "$GITHUB_WORKSPACE/deps_to_install.txt")
# Remove -n 1 to run npm install only once with all dependencies.
(cd "$project_dir" && xargs npm install < "$GITHUB_WORKSPACE/deps_to_install.txt")
git add "$project_dir/package-lock.json"
fi
# Stage the manifest file that npm/yarn updated.
Expand Down