Skip to content

Commit

Permalink
Add disk space debugging to releease workflow (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored May 2, 2023
1 parent 695439d commit 51adf35
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ jobs:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}

- name: Check disk space
run: df -h
- name: Check disk space before
shell: bash
run: |-
set -x
printf "\nPWD is %s\n\n" $(pwd -P)
df -h $(pwd -P)
if [[ -n $TMPDIR ]]; then
printf "\n\nTMPDIR set to %s\n\n" "$TMPDIR"
df -h "$TMPDIR"
else
printf "\n\nTMPDIR not set, showing space in /tmp\n\n"
df -h /tmp
fi
printf "\n\nAll disk space:\n"
df -h
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand All @@ -37,3 +50,19 @@ jobs:
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check disk space after
shell: bash
run: |-
set -x
printf "\nPWD is %s\n\n" $(pwd -P)
df -h $(pwd -P)
if [[ -n $TMPDIR ]]; then
printf "\n\nTMPDIR set to %s\n\n" "$TMPDIR"
df -h "$TMPDIR"
else
printf "\n\nTMPDIR not set, showing space in /tmp\n\n"
df -h /tmp
fi
printf "\n\nAll disk space:\n"
df -h

0 comments on commit 51adf35

Please sign in to comment.