Skip to content

Commit

Permalink
chore: turn check_suite into check_run (#33125)
Browse files Browse the repository at this point in the history
Investigation has shown that `check_suite` only triggers on main repo events, never on forks.

Let's see what `check_run` does.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rix0rrr authored Jan 24, 2025
1 parent dd34d2e commit c0a2cbf
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/check-suite-test.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

name: Check Suite Logger
name: Check Run Logger

on:
check_suite:
check_run:
types: [completed]

jobs:
log-check-suite:
log-check-run:
runs-on: ubuntu-latest

steps:
- name: Log check suite event details
- name: Log check run event details
run: |
echo "Check Suite ID: ${{ github.event.check_suite.id }}"
echo "Status: ${{ github.event.check_suite.status }}"
echo "Conclusion: ${{ github.event.check_suite.conclusion }}"
echo "URL: ${{ github.event.check_suite.url }}"
echo "Head Branch: ${{ github.event.check_suite.head_branch }}"
echo "Head SHA: ${{ github.event.check_suite.head_sha }}"
echo "Check Run ID: ${{ github.event.check_run.id }}"
echo "Status: ${{ github.event.check_run.status }}"
echo "Conclusion: ${{ github.event.check_run.conclusion }}"
echo "URL: ${{ github.event.check_run.url }}"
echo "Head Branch: ${{ github.event.check_run.head_branch }}"
echo "Head SHA: ${{ github.event.check_run.head_sha }}"
echo "Repository: ${{ github.event.repository.full_name }}"
echo "Sender: ${{ github.event.sender.login }}"
echo "Created At: ${{ github.event.check_suite.created_at }}"
echo "Updated At: ${{ github.event.check_suite.updated_at }}"
echo "Pull Requests: ${{ toJson(github.event.check_suite.pull_requests) }}"
echo "Created At: ${{ github.event.check_run.created_at }}"
echo "Updated At: ${{ github.event.check_run.updated_at }}"
echo "Pull Requests: ${{ toJson(github.event.check_run.pull_requests) }}"

0 comments on commit c0a2cbf

Please sign in to comment.