File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 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 }} \
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
You can’t perform that action at this time.
0 commit comments