Skip to content

Commit 6f633db

Browse files
more ram!
1 parent e489609 commit 6f633db

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

danger/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ runs:
5454
run: |
5555
# Start a detached container with all necessary volumes and environment variables
5656
docker run -td --name danger \
57-
--memory=2g --memory-swap=2g \
57+
--memory=4g --memory-swap=4g \
5858
--volume ${{ github.workspace }}:/github/workspace \
5959
--volume ${{ github.action_path }}:${{ github.action_path }} \
6060
--volume ${{ github.event_path }}:${{ github.event_path }} \
@@ -77,10 +77,9 @@ runs:
7777
# Install packages one at a time to reduce memory usage
7878
for package in ${{ inputs.extra-install-packages }}; do
7979
echo "Installing package: $package"
80-
docker exec --user root danger apt-get install -y --no-install-recommends "$package"
80+
docker exec --user root danger sh -c "DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' $package"
8181
done
8282
83-
8483
echo "All additional packages installed successfully."
8584
8685
- name: Run DangerJS

0 commit comments

Comments
 (0)