Closed VladimirCreator closed 1 week ago
It looks like you're running into an issue with the pulumi-github provider. Are you sure the tag that you're trying to release actually exists?
Either way, I will transfer this to the pulumi-github repo where it is more relevant.
The assumption was that it will automatically create the tag.
In any case, creating the tag and triggering deployment results the same error:
https://api.github.com/repos/:myname/:myrepo/releases: 422 Validation Failed [{Resource:Release Field:target_commitish Code:invalid Message:}]
Thanks for transferring the issue, btw!
Thanks for reporting @VladimirCreator.
I had a go at reproing this and it seems to work fine with this code:
name: github_718
runtime: yaml
resources:
example:
type: github:Repository
properties:
name: repo
exampleRelease:
type: github:Release
properties:
repository: ${example.name}
tagName: v1.0.9
I suspect the error depends on the repository configuration, can you please provide some details about how the repository was set up so we can reproduce the problem?
Does the repo have a default branch set up? targetCommitish defaults to that: https://www.pulumi.com/registry/packages/github/api-docs/release/#targetcommitish_yaml
closing due to inactivity
Expected behavior
The release should be created
I just created a release (actually an example from Pulumi GitHub Docs):
Current behavior
It throws error 422.
The strange thing is that preview succeeds, but deployment fails.
Steps to reproduce
Extra
I am able to create other types of resources.