Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add permissions needed for creating a linked discussion.
The
discussions
scope is, as far as I can tell, not documented, or I just couldn't find it with extensive web searches. GitHub's docs don't seem to mention it anywhere.However someone knew to add it to the JSON schema:
https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-workflow.json#L174-L176
It took a lot of trial and error for me to figure out why my release worked in draft mode but was failing when creating a full release.
The output for this scenario is also very confusing. I was using a token with only the
contents: write
scope, and getting this result:It successfully created the tag, so that was also an orphaned bit that I had to clean up manually before trying to run again (otherwise I would get a 422 immediately).
Then this error:
Really doesn't tell me what's wrong. It then retries, where it hits the 422 errors.
I get that a 404 doesn't say much, but I think generally 404 are not retry-able errors.
I think there's room for improvement, some suggestions:
Hopefully this small documentation change is at least helpful for future users though.
Thank you for your work on this action!