fix(ci): fail loud when the compliance diff artifact is missing (#832)

Follow-up to #830: the review script now throws if DIFF_FILE is set but the artifact file is missing, instead of silently reviewing a base-vs-base diff and posting a misleading 'No diff detected' comment. The fallback filename parser also captures deleted files, and the Bedrock job gets a 10-minute timeout.
This commit is contained in:
Jonas Flodén
2026-07-06 09:29:01 +02:00
committed by GitHub
parent f58b7a3602
commit b5f568004f
2 changed files with 22 additions and 6 deletions
@@ -11,6 +11,8 @@ name: Swedish Accounting Compliance Review
on:
workflow_run:
# Must match the `name:` field in swedish-compliance-diff.yml exactly.
# A rename there silently stops this trigger from firing on all subsequent PRs.
workflows: ["Compliance diff"]
types: [completed]
@@ -22,6 +24,7 @@ permissions:
jobs:
review:
runs-on: ubuntu-latest
timeout-minutes: 10
# Only act on PR-triggered diffs that actually produced an artifact.
if: >
github.event.workflow_run.event == 'pull_request' &&