mirror of
https://github.com/imjasonh/apidiff-action
synced 2026-07-06 22:52:43 +00:00
fix: improve dist update messaging and ensure proper CI flow
- Add clear message when dist is auto-updated - Exit with code 1 to prevent auto-merge of out-of-date dist - This ensures the PR must pass CI again after dist update
This commit is contained in:
parent
cf69be2f04
commit
422a3478df
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -56,7 +56,10 @@ jobs:
|
||||||
git add dist/
|
git add dist/
|
||||||
git commit -m "chore: update dist" --no-verify
|
git commit -m "chore: update dist" --no-verify
|
||||||
git push
|
git push
|
||||||
exit 1 # Fail CI, to ensure the PR does not auto-merge
|
echo ""
|
||||||
|
echo "✅ Updated dist/ directory. The check-dist job will pass on the next CI run."
|
||||||
|
echo ""
|
||||||
|
exit 1 # Fail to prevent auto-merge of out-of-date dist
|
||||||
|
|
||||||
# For PRs from forks, fail with instructions
|
# For PRs from forks, fail with instructions
|
||||||
- name: Fail if dist is out of date (fork PR)
|
- name: Fail if dist is out of date (fork PR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue