From 769b10a9cd86bec2aa61ce5f1e39fc60746e39bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiberiu=20Sab=C4=83u?= Date: Fri, 30 Jan 2026 15:43:01 +0100 Subject: [PATCH 1/2] Update additional.yaml workflow to post issue on error --- .github/workflows/additional.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/additional.yml b/.github/workflows/additional.yml index df382a848..7eefd1ca0 100644 --- a/.github/workflows/additional.yml +++ b/.github/workflows/additional.yml @@ -30,3 +30,35 @@ jobs: - uses: actions/checkout@v5 - uses: prefix-dev/setup-pixi@v0.9.0 - run: pixi run docs-linkcheck + + create-issue-on-failure: + name: Create issue on failure + runs-on: ubuntu-latest + needs: [min-version-policy, linkcheck] + if: failure() && github.event_name == 'schedule' + permissions: + issues: write + steps: + - name: Create issue + uses: actions/github-script@v7 + with: + script: | + const workflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`; + const title = `CI Additional workflow failed - ${new Date().toISOString().split('T')[0]}`; + const body = `The [CI Additional workflow](${workflowUrl}) failed on its scheduled run. + + **Workflow Run:** ${context.runId} + **Trigger:** ${context.eventName} + **Branch:** ${context.ref} + + Please investigate the failure and fix the issues. + + _This issue was automatically created by the workflow._`; + + await github.rest.issues.create({ + owner: context.repo.owner, + repo: context.repo.repo, + title: title, + body: body, + labels: ['bug', 'automated'] + }); From 9cd03b80d2c918afecff831190ee5f5b175cbcb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiberiu=20Sab=C4=83u?= Date: Wed, 4 Feb 2026 17:32:06 +0100 Subject: [PATCH 2/2] Prevent skip on failure --- .github/workflows/additional.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/additional.yml b/.github/workflows/additional.yml index 7eefd1ca0..0338b7941 100644 --- a/.github/workflows/additional.yml +++ b/.github/workflows/additional.yml @@ -35,7 +35,10 @@ jobs: name: Create issue on failure runs-on: ubuntu-latest needs: [min-version-policy, linkcheck] - if: failure() && github.event_name == 'schedule' + if: | + always() && + (needs.min-version-policy.result == 'failure' || needs.linkcheck.result == 'failure') && + github.event_name == 'schedule' permissions: issues: write steps: