From 453d73b168b22adaa18b46f63702c18121a4f95b Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Fri, 20 Sep 2024 12:57:42 -0700 Subject: [PATCH] Github Actions debug --- .github/workflows/build.yml | 12 +----------- .github/workflows/example.yml | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4494a88a..39cfe1c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,16 +16,6 @@ jobs: - name: Check out code uses: actions/checkout@v2 - - name: Cache Go modules - uses: actions/cache@v3 - with: - path: | - ~/go/pkg/mod - key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}-${{ github.ref }} - restore-keys: | - ${{ runner.os }}-go-mod-${{ github.ref }} - ${{ runner.os }}-go-mod- - - name: Cache Funnel binary uses: actions/cache@v3 with: @@ -35,7 +25,7 @@ jobs: ${{ runner.os }}-funnel-bin-${{ github.ref }} ${{ runner.os }}-funnel-bin- - - name: Build Funnel (only if cache doesn't exist) + - name: Build Funnel (if cache doesn't exist) run: | if [ ! -f ./funnel ]; then make build diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 3e8a5f70..4efd7b12 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -11,8 +11,23 @@ jobs: use-funnel: needs: build runs-on: ubuntu-latest + steps: + - name: List available artifacts + uses: actions/github-script@v6 + with: + script: | + const artifacts = await github.rest.actions.listArtifactsForRepo({ + owner: context.repo.owner, + repo: context.repo.repo + }); + console.log(artifacts); + + - uses: actions/download-artifact@v3 + with: + name: funnelBin + - name: Set up Go 1.x uses: actions/setup-go@v5 with: @@ -21,9 +36,7 @@ jobs: - name: Check out code uses: actions/checkout@v2 - - uses: actions/download-artifact@v3 - with: - name: funnelBin + - name: Use Funnel binary run: |