From 785c5a0f7cf3ce178eeb19b2395ebf5131b043e3 Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Sat, 14 Oct 2023 13:16:00 -0500 Subject: [PATCH] chore: add cleanup files action to push stage of release workflow (#2073) ## Description This fixes an issue with the release workflow running out of space. https://github.com/defenseunicorns/zarf/actions/runs/6514706543/job/17697026978 ## Related Issue Fixes #N/A ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [X] Other (security config, docs update, etc) ## Checklist before merging - [X] Test, docs, adr added or updated as needed - [X] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 980f528631..212cb49722 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -151,14 +151,19 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_GOV_SECRET_ACCESS_KEY }} aws-region: us-gov-west-1 - - name: Skip brew latest for pre-release tags + - name: Make zarf executable and skip brew latest for pre-release tags run: | + chmod +x build/zarf if [[ $GITHUB_REF_NAME == *"rc"* ]]; then echo "BREW_NAME=zarf@latest-rc" >> $GITHUB_ENV else echo "BREW_NAME=zarf" >> $GITHUB_ENV fi + # Before we run the release we need to aggressively cleanup files to reduce disk pressure + - name: Cleanup files + uses: ./.github/actions/cleanup-files + # Create the GitHub release notes, upload artifact backups to S3, publish homebrew recipe - name: Run GoReleaser uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0