From bb1f3389c697c823eb6ebbc0b78322415d8bd2e4 Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Wed, 16 Oct 2024 15:31:54 -0600 Subject: [PATCH] ci: publish: Use RUNNER_TEMP for brewed bottles dir --- .github/workflows/tests.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b50c4ba..58b46b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,9 @@ jobs: - name: Create brewed-bottles dir run: | - mkdir brewed-bottles + mkdir ${RUNNER_TEMP}/brewed-bottles + pwd + ls -lA ${RUNNER_TEMP}/brewed-bottles - name: HACK - Bottle go + Force link conflicting go binaries env: @@ -44,8 +46,8 @@ jobs: brew install --build-bottle go || true brew link --overwrite go brew bottle go - find "${GITHUB_WORKSPACE}" -iname '*.bottle.*.tar.gz' -exec mv '{}' ./brewed-bottles/ \; - ls -l ./brewed-bottles/ + find "${GITHUB_WORKSPACE}" -iname '*.bottle.*.tar.gz' -exec mv '{}' ${RUNNER_TEMP}/brewed-bottles/ \; + ls -l ${RUNNER_TEMP}/brewed-bottles/ fi : @@ -71,7 +73,7 @@ jobs: if: github.event_name == 'pull_request' - name: DEBUG - bottle files - run: ls -lA ./brewed-bottles/ + run: ls -lA ${RUNNER_TEMP}/brewed-bottles/ if: github.event_name == 'pull_request' - name: Upload bottles as artifact @@ -79,4 +81,4 @@ jobs: uses: actions/upload-artifact@main with: name: bottles_${{ matrix.os }}-${{ runner.arch }} - path: './brewed-bottles/*.bottle.*' + path: '${{ env.RUNNER_TEMP }}/brewed-bottles/*.bottle.*'