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:
@@ -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' &&
|
||||
|
||||
Reference in New Issue
Block a user