From 2750b37d45fbfe1bc4e2459bb593e2edbd8eb4ed Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Fri, 13 Oct 2023 22:05:39 -0500 Subject: [PATCH 1/2] Add cleanup to go releaser as well --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 980f528631..94f2c2ba54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -153,12 +153,17 @@ jobs: - name: 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 From 838d36ba86485df1057f26ab38068bdecb5d4676 Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Fri, 13 Oct 2023 22:08:26 -0500 Subject: [PATCH 2/2] Update comment for making zarf executable --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94f2c2ba54..212cb49722 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -151,7 +151,7 @@ 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