Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/workflow-failure-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions: {}
jobs:
workflow-failure-issue:
name: Open or close workflow failure issue
if: github.repository_owner == 'open-telemetry'
permissions:
issues: write # needed to open, comment on, and close workflow failure issues
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion workflow-failure-issue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Reusable GitHub Actions workflow that tracks the pass/fail state of another
workflow (typically a scheduled one) by opening, commenting on, and closing a
GitHub issue in the calling repository.
GitHub issue in the calling repository. The workflow runs only when the calling
repository belongs to the `open-telemetry` organization, preventing runs in
forks from creating failure issues.

This is useful because GitHub notifies only a single user of scheduled-workflow
failures. Per the [GitHub docs on scheduled workflows](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#actor-for-scheduled-workflows):
Expand Down