hyperjumptech/monika

Cancel workflow is not working

Closed this issue · 2 comments

Describe the bug
Error appears when cancel workflow. See here.

To Reproduce
Push some code with a failed test to a branch.

Expected behavior
All workflows canceled if a workflow failed.

Screenshots
image

I can't seem to reproduce this on my fork. Experiments on #1202 is reproducible but no fix found so far. Last option is to change permission for the whole Github Actions in hyperjumptech/monika repository. cc @nicnocquee

image

Reference

I can't seem to reproduce this on my fork. Experiments on #1202 is reproducible but no fix found so far. Last option is to change permission for the whole Github Actions in hyperjumptech/monika repository. cc @nicnocquee

Reference

Turns out the GITHUB_TOKEN from a fork repository PRs cannot write to Actions resources, documented here.

We will need a different approach to cancel a workflow with independent jobs or declare any long-running jobs to depend on the other ones.