When we try to get a release by tag, it doesn't
return release drafts. In order to get release
drafts we need to list the releases using a token
that has write access on the repo.
Also added tests for the same.
BREAKING CHANGE: Changed behaviour to not create
a new release. Only upload to existing releases.
Also updated the action inputs to reflect the same.
Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
To be able to manage foreign repositories.
The `owner` and `repo` is extracted from the `repo_name`.
Otherwise, it uses the current repository.
Closes#24
Signed-off-by: Akos Kitta <kittaakos@typefox.io>