FIX Allow patch tag workflow to be dispatched correctly. #146
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.
Two changes were made here:
actions/checkout
action is per-job. So we'd have to run that again in this job for it to work. Instead, we can just check the response code of the request, and if it's a 404 we know the file wasn't there.actions:write
permission. This is required, or else we get a 403 response code.I have tested this in a repo I control, and found both of these changes are necessary for it to work as expected.
I have also pulled this fork in a repo I control to check and the new permission does need to be added in ci.yml for community members: https://github.com/GuySartorelli/silverstripe-composable-validators/actions/runs/10275469540
I've added back the warning from #139 (comment) as a result.
Issue