Skip to content

Commit

Permalink
Github Actions debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Sep 20, 2024
1 parent a82b3cd commit 453d73b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down

0 comments on commit 453d73b

Please sign in to comment.