Skip to content

Commit

Permalink
feat: Add CodeQL cleanup for another ~5GB
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored Oct 1, 2023
1 parent 3878e14 commit e3843c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ inputs:
description: 'Removes cached images in docker. (frees ~5 GB)'
required: false
default: 'true'
remove-codeql:
description: 'Removes CodeQL Action Bundles. (frees ~5.4 GB)'
required: false
default: 'false'
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -55,6 +59,9 @@ runs:
if [[ ${{ inputs.remove-docker-cached-images }} == 'true' ]]; then
echo -n "remove-docker-cached-images "
fi
if [[ ${{ inputs.remove-codeql }} == 'true' ]]; then
echo -n "codeql "
fi
echo
echo "Removing unwanted software... "
Expand Down Expand Up @@ -85,6 +92,9 @@ runs:
if [[ ${{ inputs.remove-docker-cached-images }} == 'true' ]]; then
sudo docker image prune --all --force
fi
if [[ ${{ inputs.remove-codeql }} == 'true' ]]; then
sudo rm -rf /opt/hostedtoolcache/CodeQL
fi
echo "... done"
- name: Disk space report after modification
Expand Down

0 comments on commit e3843c8

Please sign in to comment.