Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make issue when weekly checks fail #1322

Merged
merged 1 commit into from
May 8, 2024
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/weekly-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,29 @@ jobs:
npm run check:external-links --
'docs/**/*.{md,mdx,ipynb}'
'!docs/api/qiskit/[0-9]*/*'

make_issue:
name: Make issue on failure
needs: [external-link-checker, pages-render]
if: ${{ failure() && github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- name: Post issue
uses: actions/github-script@v7
with:
script: |
const message = `Today's scheduled extended checks failed.

Please [check the logs](https://github.com/Qiskit/documentation/actions/runs/${{ github.run_id }}/).

> [!NOTE]
> This issue was created by a GitHub action.
`

github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "Extended checks failed",
body: message,
assignees: ["frankharkins", "Eric-Arellano", "arnaucasau"]
})
Loading