Open GeluConstantin opened 8 months ago
Same issue here. Solved it by downgrading (using @v2
instead of @v4
).
I think we're encountering the same issue. When we upload and download artifacts in the same GHA workflow, the download doesn't work. Uploading with actions/upload-artifact@v3
works fine -- the artifact is found by later steps in the workflow. But if we use actions/upload-artifact@v4
, the uploaded artifact isn't found (even though it shows up in the workflow results page).
Here is a brief workflow that will illustrate the problem.
name: GLUPAY-6911 Test
on:
pull_request:
branches: [ 'master' ]
types: [ 'opened', 'synchronize' ]
paths:
- '.github/workflows/test.yml'
workflow_dispatch:
inputs:
jobs:
upload-artifact:
runs-on: ubuntu-latest-4-cores
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Upload file
if: always()
uses: actions/upload-artifact@v4
with:
name: workflow-file
path: "./.github/workflows/test.yml"
retention-days: 3
download-artifact:
runs-on: ubuntu-latest-4-cores
needs: [ upload-artifact ]
steps:
- name: Download Single Artifact
uses: actions/download-artifact@v3
with:
name: workflow-file
download-artifacts:
runs-on: ubuntu-latest-4-cores
needs: [ upload-artifact ]
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v3
Everything works with upload-artifact@v3
:
But the same workflow fails with upload-artifact@v4
:
Yep had the same problem - also solved here by fixing to v3
.
I'm having the same issue, but cannot work around it by downgrading because I rely on a dependency, softprops/action-gh-release
to upload release artifacts, so I can't control how it uploads them in order for them to be seen by actions/download-artifact
.
What happened?
I used the action in the basic form.
Got no errors but 0 Artifacts found.
Run actions/download-artifact@v4 with: merge-multiple: false repository: GeluKu/GitHub_Reference_for_Linux run-id: 7739313326 No input name specified, downloading all artifacts. Extra directory with the artifact name will be created for each download Found 0 artifact(s) Total of 0 artifact(s) downloaded Download artifact has finished successfully
What did you expect to happen?
One Artifact should be downloaded.
This artifact is available over the API: Run curl -L \ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4205 100 4205 0 0 10014 0 --:--:-- --:--:-- --:--:-- 10011 [ { "url": "https://api.github.com/repos/GeluKu/GitHub_Reference_for_Linux/releases/139463539", "assets_url": "https://api.github.com/repos/GeluKu/GitHub_Reference_for_Linux/releases/139463539/assets", "upload_url": "https://uploads.github.com/repos/GeluKu/GitHub_Reference_for_Linux/releases/139463539/assets{?name,label}", "html_url": "https://github.com/GeluKu/GitHub_Reference_for_Linux/releases/tag/Automatic", "id": 139463539, "author": { "login": "github-actions[bot]", "id": 41898282, "node_id": "MDM6Qm90NDE4OTgyODI=", "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/github-actions%5Bbot%5D", "html_url": "https://github.com/apps/github-actions", "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", "type": "Bot", "site_admin": false }, "node_id": "RE_kwDOK2hahM4IUAtz", "tag_name": "Automatic", "target_commitish": "20eae4421b15f27e086a4a643cc6968ab3b02c22", "name": "Grafana V10.3.1-1", "draft": false, "prerelease": false, "created_at": "2024-02-01T09:22:54Z", "published_at": "2024-02-01T09:31:32Z", "assets": [ { "url": "https://api.github.com/repos/GeluKu/GitHub_Reference_for_Linux/releases/assets/149[13](https://github.com/GeluKu/GitHub_Reference_for_Linux/actions/runs/7739251057/job/21101724312#step:2:14)9720", "id": 149139720, "node_id": "RA_kwDOK2hahM4I47EI", "name": "grafana-enterprise-10.3.1-1.x86_64.rpm", "label": "", "uploader": { "login": "github-actions[bot]", "id": 41898282, "node_id": "MDM6Qm90NDE4OTgyODI=", "avatar_url": "https://avatars.githubusercontent.com/in/[15](https://github.com/GeluKu/GitHub_Reference_for_Linux/actions/runs/7739251057/job/21101724312#step:2:16)368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/github-actions%5Bbot%5D", "html_url": "https://github.com/apps/github-actions", "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", "type": "Bot", "site_admin": false }, "content_type": "application/zip", "state": "uploaded", "size": 134, "download_count": 0, "created_at": "2024-02-01T09:31:32Z", "updated_at": "2024-02-01T09:31:33Z", "browser_download_url": "https://github.com/GeluKu/GitHub_Reference_for_Linux/releases/download/Automatic/grafana-enterprise-10.3.1-1.x86_[64](https://github.com/GeluKu/GitHub_Reference_for_Linux/actions/runs/7739251057/job/21101724312#step:2:65).rpm" } ], "tarball_url": "https://api.github.com/repos/GeluKu/GitHub_Reference_for_Linux/tarball/Automatic", "zipball_url": "https://api.github.com/repos/GeluKu/GitHub_Reference_for_Linux/zipball/Automatic", "body": "" } ]
How can we reproduce it?
Yes, logs available in the Repo: https://github.com/GeluKu/GitHub_Reference_for_Linux.git
Anything else we need to know?
No response
What version of the action are you using?
latest
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No