-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi (again), I'm not sure to have understood correctly the way your script runs.
If I set the tag and release fields, I suppose the tag and release will be created by I have the message:
👀 Checking current state of the release
File "/src/main.py", line 109, in
release = repo.get_release(tag_name)
File "/usr/local/lib/python3.9/site-packages/github/Repository.py", line 3053, in get_release
headers, data = self._requester.requestJsonAndCheck(
File "/usr/local/lib/python3.9/site-packages/github/Requester.py", line 353, in requestJsonAndCheck
return self.__check(
File "/usr/local/lib/python3.9/site-packages/github/Requester.py", line 378, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"}
If I create the tag and release before, the script says:
fatal: tag 'dev-20220621' already exists
So what is the correct way to use it ?
Would it be possible to consider that tag/release could already exist (we just want to upgrade fields and assets).
Thanks for your help.