Skip to content

Commit

Permalink
Merge pull request #825 from chromaui/gh-merge-group
Browse files Browse the repository at this point in the history
Merge Group (Queues) GitHub Action Event Support
  • Loading branch information
thafryer authored Oct 31, 2023
2 parents ea85a13 + 9826540 commit 8c566e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action-src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ const getBuildInfo = (event: typeof context) => {
slug: event.payload.repository.full_name,
};
}
case 'merge_group': {
const { head_sha, head_ref } = event.payload.merge_group;
return {
sha: head_sha,
branch: head_ref,
slug: event.payload.repository.full_name,
};
}
default: {
setFailed(`${event.eventName} event is not supported in this action`);
return null;
Expand Down

0 comments on commit 8c566e2

Please sign in to comment.