Maybe this is out of the box, maybe not. But I can't find this in any of the documentation.
I know you can skip workflows on Push and Pull_Requests. However, I need to skip workflows when updating Issues via the REST API.
My current workflow yaml looks like the following:
on:
schedule:
- cron: '10/15 * * * *'
issues:
types: [opened, closed, deleted, reopened, edited, labeled, unlabeled, assigned, unassigned]
issue_comment:
types: [created]
The schedule
job does some clean-up on issues via a custom action that leverages the GitHub/Octokit REST API.
Is there a way that I can prevent the workflow from running if the issue is updated via the API?