-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Create Artifact Container failed: The artifact name is not valid #214
Comments
Until this is fixed use jobs:
build-linux-flatpak:
needs: build-linux
name: "Build Linux flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-22.08
options: --privileged
permissions: write-all
timeout-minutes: 10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Download binary from build-linux
uses: actions/download-artifact@v4
with:
name: linux_x86_64_binary
- name: Extract binary
run: mkdir -p ./build/linux/x64/release/bundle && cd ./build/linux/x64/release/bundle && tar -x -f ../../../../../letscheck-linux-x86_64-${{ github.event.release.tag_name }}.tar.xz .
- name: Build flatpak
uses: jochumdev/flatpak-github-actions/flatpak-builder@builder-update-deps
with:
bundle: letscheck.flatpak
manifest-path: ./flathub/dev.jochum.letscheck.yml
cache-key: flatpak-builder-${{ github.sha }}
upload-artifact: "false" |
Workaround could be - name: Build flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
upload-artifact: "false" EDIT: Doesn't work. |
Same here. In previous runs io.github.vpelss.snis_flatpak-x86_64 was a valid name. Creating a bundle... Begin Diagnostic HTTP informationStatus Code: 400 End Diagnostic HTTP informationBegin Diagnostic HTTP informationStatus Code: 400 End Diagnostic HTTP informationError: Build failed: Error: Create Artifact Container failed: The artifact name io.github.vpelss.snis_flatpak-x86_64 is not valid. Request URL https://pipelinesghubeus11.actions.githubusercontent.com/CKXs3k5qqK6YfH3W04iVjN8lwk3VkgkwusFqTkNnHuBkkUptLi/_apis/pipelines/workflows/130[81](https://github.com/vpelss/snis_flatpak/actions/runs/13081700674/job/36506454079#step:4:82)700674/artifacts?api-version=6.0-preview |
The error message is quite misleading but the reason is, due to outdated dependencies, this Action uses an upload endpoint which GitHub finally disabled at the end of january, this Action will now always fail until it gets finally updated. |
As per above, replacing
and then adding is working for me now. So I believe the fix mentioned above should be:
|
If you disable uploading of artifacts then of course this Action does not access a disabled upload endpoint anymore... |
actually, I did that (only adding the |
Well, my bad, i stand corrected then. If you are looking for a variant with a working upload, i suggest the fork flathub-infra/flatpak-github-actions, my build just finished and the artifact got uploaded successfully. |
For me I needed to change both:
|
Same issue here |
* docs: add macOS troubleshooting section * fix: smaller screenshot image * fix: uploading the artifact results in a 400 error * ci: try to fix upload artifact problem flatpak/flatpak-github-actions#184 * ci: specify latest action version by hand * fix: flatpak build See flatpak/flatpak-github-actions#214
I am getting this issue with the flatpak/flatpak-github-actions in my CI GitHub Actions workflow. The error occurs during the artifact upload process. This issue started occurring randomly, and even rerunning previously successful CI builds now results in failure.
Link to an example of this issue on my project: https://github.com/Revisto/drum-machine/actions/runs/13075794457
Link to rerun version of successful CI that failed now: https://github.com/Revisto/drum-machine/actions/runs/12893920065
Error Details:
The text was updated successfully, but these errors were encountered: