Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .github/actions/report-failure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: 'Report failure'
description: >-
Track failures of a scheduled workflow in a single open issue: open it on the
first failure and comment on it for every subsequent one until someone closes
it. Run this as the last step with "if: failure()".
it. Run this as the last step with
"if: failure() && github.event_name == 'schedule'".
Requires the calling job to have "permissions: issues: write".

inputs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/bump-go-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ jobs:
git push origin "HEAD:$BRANCH"

# A failed scheduled run is otherwise only visible in the Actions tab.
# Manual runs are watched by whoever started them.
- name: Report failure
if: failure()
if: failure() && github.event_name == 'schedule'
uses: ./.github/actions/report-failure
with:
label: bump-go-toolchain-failure
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/bump-vuln-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:
inputs:
dry_run:
description: "Compute and show the bump without creating a pull request or failure issue"
description: "Compute and show the bump without creating a pull request"
type: boolean
default: false

Expand Down Expand Up @@ -145,8 +145,9 @@ jobs:
git push origin "HEAD:$BRANCH"

# A failed scheduled run is otherwise only visible in the Actions tab.
# Manual runs are watched by whoever started them.
- name: Report failure
if: failure() && !inputs.dry_run
if: failure() && github.event_name == 'schedule'
uses: ./.github/actions/report-failure
with:
label: bump-vuln-deps-failure
Expand Down
Loading