-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Code used to download artifacts from other repos:
gateway-conformance/.github/workflows/deploy-pages.yml
Lines 36 to 60 in 78aa307
| steps: | |
| - name: get repo details | |
| id: get-details | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| OWNER_AND_REPO: ${{ matrix.target }} | |
| run: | | |
| DETAILS=$(gh api repos/${OWNER_AND_REPO}) | |
| DEFAULT_BRANCH=$(echo $DETAILS | jq -r '.default_branch') | |
| echo "default-branch=${DEFAULT_BRANCH}" >> $GITHUB_OUTPUT | |
| NAME=$(echo $DETAILS | jq -r '.name') | |
| echo "name=${NAME}" >> $GITHUB_OUTPUT | |
| - name: Download json output | |
| id: download-artifact | |
| uses: dawidd6/action-download-artifact@v2 # TODO: pin | |
| with: | |
| workflow: gateway-conformance.yml | |
| workflow_conclusion: "completed" # TODO: ideally we could request success|failure (https://github.com/dawidd6/action-download-artifact#usage) | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: ${{ steps.get-details.outputs.default-branch }} | |
| name: gateway-conformance.json | |
| repo: ${{ matrix.target }} | |
| if_no_artifact_found: fail |
Action failed:
https://github.com/ipfs/gateway-conformance/actions/runs/6218823800/job/16875980114
Run dawidd6/action-download-artifact@v2
==> Repository: ipfs/kubo
==> Artifact name: gateway-conformance.json
==> Local path: ./
==> Workflow name: gateway-conformance.yml
==> Workflow conclusion: completed
==> Branch: master
==> (found) Run ID: 62[1](https://github.com/ipfs/gateway-conformance/actions/runs/6218823800/job/16875980114#step:3:1)0849710
==> (found) Run date: 2023-09-[17](https://github.com/ipfs/gateway-conformance/actions/runs/6218823800/job/16875980114#step:3:18)T01:42:28Z
==> (not found) Artifact: gateway-conformance.json
==> Found the following artifacts instead:
Error: no artifacts found
When I open the run_id:
https://github.com/ipfs/kubo/actions/runs/6210849710
That looks like the master branch from a fork.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working