How do I make a single action, with multiple triggers, create only a single check? #69992
Replies: 4 comments
-
I have the same confusion about this. |
Beta Was this translation helpful? Give feedback.
-
What is the status on this? I face the same issue. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
I've tried using |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have created an action which processes a PR's labels and changed files to determine which and how many codeowner(s) need to review the PR. The details of how it works are not particularly important, but it needs to run on both
pull_request
andpull_request_review
triggers since it depends on labels and reviews (respectively).These triggers are currently causing two different checks to run, but I only need the latest check to pass. How can I combine both these checks into one, so that merging is allowed? (screenshot: first run fails, subsequent run succeeds under a different trigger)
Here's my
.github/workflows/review-requirements.yml
and here's
.github/actions/label-based-review-requirements/action.yml
.github/actions/label-based-review-requirements/dist/index.js
looks something kind of like this (actual logic removed)The documentation doesn't say much about this.
Beta Was this translation helpful? Give feedback.
All reactions