-
Notifications
You must be signed in to change notification settings - Fork 86
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
version_id parameter must be an integer #101
Comments
i am having the same issue @lloeki did you find a way around this? |
same issue here, version is 1.1.17 |
I managed to get Listing package versions for a package owned by a user (cURL):curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/users/USERNAME/packages/PACKAGE_TYPE/PACKAGE_NAME/versions Example (replace curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/users/rlaiola/packages/container/relax-docker/versions A JSON will be returned. You need an id like the one in the image below. Hope it helps! Cheers. |
@pbaroni-mdlz how did you use it? Please share |
|
The documentation specifically lists below example
As in, a string should be accepted, so this seems to be a bug. As suggested in the same Readme, I get that string from the GitHub GraphQL API, not sure that an int version is even available there. EDIT: Went back and checked on version 3.0.1, and it works fine there with a string. Something happened in between :) |
I agree with this being a bug. I'm using this action with a workflow where I create a temporary container image to use as a service in other jobs and want to delete afterwards. I see my version as the tag on the container e.g. If there was an action that could build and publish my image and the output of that step was the package id i could use later that'd save having to do an API call and parsing the response. |
So I'm hitting this strange issue I can't quite explain when deleting a package version on
ghcr.io
:Full output:
Usage in workflow:
The text was updated successfully, but these errors were encountered: