Skip to content

Commit c931ee9

Browse files
install one at time
1 parent a5566ba commit c931ee9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

danger/action.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ runs:
5454
run: |
5555
# Start a detached container with all necessary volumes and environment variables
5656
docker run -td --name danger \
57-
--memory=2g \
5857
--volume ${{ github.workspace }}:/github/workspace \
5958
--volume ${{ github.action_path }}:${{ github.action_path }} \
6059
--volume ${{ github.event_path }}:${{ github.event_path }} \
@@ -73,9 +72,15 @@ runs:
7372
run: |
7473
echo "Updating package lists..."
7574
docker exec --user root danger apt-get update
76-
echo "Installing additional packages: ${{ inputs.extra-install-packages }}"
77-
docker exec --user root danger apt-get install -y ${{ inputs.extra-install-packages }}
78-
echo "Additional packages installed successfully."
75+
76+
# Install packages one at a time to reduce memory usage
77+
for package in ${{ inputs.extra-install-packages }}; do
78+
echo "Installing package: $package"
79+
docker exec --user root danger apt-get install -y --no-install-recommends "$package"
80+
done
81+
82+
83+
echo "All additional packages installed successfully."
7984
8085
- name: Run DangerJS
8186
id: danger

0 commit comments

Comments
 (0)