Hello!
I have a workflow that upload artifacts (via actions/upload-artifact@v3
action).
I need to download one file from these artifacts in another workflow.
Unfortunately, I faced with a problem:
actions/download-artifact@v4
doesn’t work with error:upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES..
actions/download-artifact@v3
doesn’t work with error:::error::List Artifacts failed: Artifact service responded with 404
christopherhx/gitea-download-artifact@v4
(as recommended here: Gitea 1.22.0 is released | Gitea Blog and here: Actions Artifacts v4 backend by ChristopherHX · Pull Request #28965 · go-gitea/gitea · GitHub) doesn’t work with error:::error::Unable to download artifact(s): Failed to ListArtifacts: Unexpected token N in JSON at position 0
The code I am trying to get working is following:
name: Deploy Software
on:
workflow_dispatch:
inputs:
build-id:
type: string
description: Build number to deploy
required: true
server_name:
type: string
description: Server name to deploy to
required: true
jobs:
deploy_software:
runs-on: linux_amd64
steps:
- name: Download artifacts
uses: christopherhx/gitea-download-artifact@v4
with:
name: build_details
pattern: build_details.txt
run-id: ${{ github.event.inputs.build-id }}
As you can see: I need to download build_details.txt
file from artifacts named build_details
which were created in a run with the ID set by user in input parameters.
I am using the latest version of Gitea (1.23.1) and act_runner (0.2.11)
I appreciate any advice how to do it.
Thank you!
UPDATE:
I have added permissions: read-all
to the job and changed the step to:
- name: Download artifacts
uses: christopherhx/gitea-download-artifact@v4
with:
name: build_details
github-token: ${{ github.token }}
run-id: ${{ github.event.inputs.build-id }}
path: input
That didn’t solve the problem, but the error message has changed to: ::error::Unable to download artifact(s): 404 page not found%0A
UPDATE 2:
dawidd6/action-download-artifact@v7
doesn’t seem to work either.
Step:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v7
with:
github_token: ${{ inputs.token }}
run_number: ${{ inputs.build-id }}
name: build_details
workflow: build.yml
Produces the same error: ::error::404 page not found%0A
. It looks like Gitea is missing the page to get/download artifacts.