Skip to content

Commit

Permalink
try to fix swap
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Jun 16, 2023
1 parent a75443a commit eca0a7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ runs:
shell: bash
if: inputs.remove-swap == 'true'
run: |
sudo swapoff -a
sudo rm -f /mnt/swapfile
export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
sudo swapoff $SWAP_FILE
sudo rm $SWAP_FILE
- name: Disk space report after modification
shell: bash
Expand Down

0 comments on commit eca0a7b

Please sign in to comment.