https://cypress.io logo
Cancel run from GitHub Action
# i-need-help
s
When I cancel job in GitHub Action it doesn't cancel run in Cloud so I need to go there and cancel it manually. Is it possible to cancel it from GitHub Action?
m
Hi @strong-cat-47196 Which version of Cypress are you using? Have you looked at https://github.com/cypress-io/github-action#specify-auto-cancel-after-failures? I couldn't try it out myself, because I don't have a Premium account that the documentation says you would need. See https://docs.cypress.io/guides/cloud/smart-orchestration?ref=cypress.io#Activate-Auto-Cancellation-in-Cypress-Cloud
s
@many-airline-45402 I'm using 12.8.0 and Team Plan, so I don't have access to auto cancellation either, but I don't this feature is relevant for my needs. Sometimes I going to the GitHub Action and cancel it manually, but it doesn't affect Cypress Cloud, so I need to go there as well and cancel it. Is there any api that gives me this?
m
github-action uses https://docs.cypress.io/guides/guides/module-api to run Cypress and record. I can't see any other way to cancel apart from the parameter I mentioned and manual cancellation. Perhaps one of the Cloud experts can help out here?
Like the answer in https://github.com/cypress-io/github-action/issues/531#issuecomment-1528886885 the issue here is more a https://discord.com/channels/755913899261296641/1064949020235149442 issue than a github-action issue and applies also to other CI environments as well.