mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Open issues for failed scheduled workflows
I noticed recently the SBOM workflow was failing and had been for a long time and we'd not noticed. I've added issues for the other workflows that run on a schedule and fixed the updating state. I've also renamed the SBOM workflow to `sbom.yml` to match what it does. Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
parent
66621b56c9
commit
d2269c5b30
2
.github/workflows/pkg-installer.yml
vendored
2
.github/workflows/pkg-installer.yml
vendored
@ -259,7 +259,7 @@ jobs:
|
||||
${{ github.ref_name }}. No pkg installer was uploaded to the GitHub
|
||||
release.
|
||||
labels: bug,release blocker
|
||||
update-existing: ${{ contains(needs.*.result, 'failure') }}
|
||||
update-existing: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
|
||||
close-existing: ${{ needs.upload.result == 'success' }}
|
||||
close-from-author: github-actions[bot]
|
||||
close-comment: >
|
||||
|
@ -1,8 +1,8 @@
|
||||
name: Update schema data
|
||||
name: Update SBOM schema
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/schemas.yml
|
||||
- .github/workflows/sbom.yml
|
||||
branches-ignore:
|
||||
- main
|
||||
- master
|
||||
@ -18,7 +18,7 @@ defaults:
|
||||
shell: bash -xeuo pipefail {0}
|
||||
|
||||
jobs:
|
||||
spdx:
|
||||
sbom:
|
||||
if: github.repository == 'Homebrew/brew'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -94,3 +94,26 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
|
||||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
|
||||
|
||||
issue:
|
||||
needs: sbom
|
||||
if: always() && github.event_name == 'schedule'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
permissions:
|
||||
# To create or update issues
|
||||
issues: write
|
||||
steps:
|
||||
- name: Open, update, or close schema issue
|
||||
uses: Homebrew/actions/create-or-update-issue@main
|
||||
with:
|
||||
title: Failed to update SBOM schema
|
||||
body: >
|
||||
The SBOM schema workflow [failed](${{ env.RUN_URL }}). No SBOM schema was updated.
|
||||
labels: bug
|
||||
update-existing: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
|
||||
close-existing: ${{ needs.sbom.result == 'success' }}
|
||||
close-from-author: github-actions[bot]
|
||||
close-comment: >
|
||||
The SBOM schema workflow [succeeded](${{ env.RUN_URL }}). Closing this issue.
|
23
.github/workflows/sorbet.yml
vendored
23
.github/workflows/sorbet.yml
vendored
@ -114,3 +114,26 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
|
||||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
|
||||
|
||||
issue:
|
||||
needs: tapioca
|
||||
if: always() && github.event_name == 'schedule'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
permissions:
|
||||
# To create or update issues
|
||||
issues: write
|
||||
steps:
|
||||
- name: Open, update, or close Sorbet issue
|
||||
uses: Homebrew/actions/create-or-update-issue@main
|
||||
with:
|
||||
title: Failed to update RBI files
|
||||
body: >
|
||||
The Sorbet workflow [failed](${{ env.RUN_URL }}). No RBI files were updated.
|
||||
labels: bug
|
||||
update-existing: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
|
||||
close-existing: ${{ needs.tapioca.result == 'success' }}
|
||||
close-from-author: github-actions[bot]
|
||||
close-comment: >
|
||||
The Sorbet workflow [succeeded](${{ env.RUN_URL }}). Closing this issue.
|
||||
|
23
.github/workflows/spdx.yml
vendored
23
.github/workflows/spdx.yml
vendored
@ -88,3 +88,26 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
|
||||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
|
||||
|
||||
issue:
|
||||
needs: spdx
|
||||
if: always() && github.event_name == 'schedule'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
permissions:
|
||||
# To create or update issues
|
||||
issues: write
|
||||
steps:
|
||||
- name: Open, update, or close SPDX issue
|
||||
uses: Homebrew/actions/create-or-update-issue@main
|
||||
with:
|
||||
title: Failed to update SPDX license data
|
||||
body: >
|
||||
The SPDX license data workflow [failed](${{ env.RUN_URL }}). No SPDX license data was updated.
|
||||
labels: bug
|
||||
update-existing: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
|
||||
close-existing: ${{ needs.spdx.result == 'success' }}
|
||||
close-from-author: github-actions[bot]
|
||||
close-comment: >
|
||||
The SPDX license data workflow [succeeded](${{ env.RUN_URL }}). Closing this issue.
|
||||
|
@ -138,3 +138,26 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
|
||||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
|
||||
|
||||
issue:
|
||||
needs: updates
|
||||
if: always() && github.event_name == 'schedule'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
permissions:
|
||||
# To create or update issues
|
||||
issues: write
|
||||
steps:
|
||||
- name: Open, update, or close sponsors, maintainers, manpage and completions issue
|
||||
uses: Homebrew/actions/create-or-update-issue@main
|
||||
with:
|
||||
title: Failed to update sponsors, maintainers, manpage and completions
|
||||
body: >
|
||||
The sponsors, maintainers, manpage and completions workflow [failed](${{ env.RUN_URL }}). No sponsors, maintainers, manpage and completions were updated.
|
||||
labels: bug
|
||||
update-existing: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
|
||||
close-existing: ${{ needs.updates.result == 'success' }}
|
||||
close-from-author: github-actions[bot]
|
||||
close-comment: >
|
||||
The sponsors, maintainers, manpage and completions workflow [succeeded](${{ env.RUN_URL }}). Closing this issue.
|
||||
|
Loading…
x
Reference in New Issue
Block a user