Skip to content

Commit bc95b66

Browse files
committed
ci: disable cr.yml + autofix.yml auto-triggers (no-op for OA fork)
Both have been failing on every push since the fork diverged from upstream: - `cr.yml`: tries to publish per-PR package previews via `pkg-pr-new`, which requires the matching GitHub App installed on the org. The app isn't installed on Open-Athena, so every run dies with `Check failed (404): The app https://github.com/apps/pkg-pr-new is not installed on Open-Athena/slidev`. We don't publish slidev packages from this fork, so the workflow has no purpose. - `autofix.yml`: lint-fix bot fails with `The autofix.ci action is not allowed to modify the .github directory` because our fork edits workflow files outside its allowlist. The lint-staged pre-commit hook already runs eslint --fix locally, so the bot is redundant. Switch both to `on: workflow_dispatch` (manual run only) instead of deleting, so re-enabling them later is a one-line revert. Pages / smoke / test / build-dist workflows are unaffected.
1 parent 829a6e5 commit bc95b66

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: autofix.ci
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
3+
# Disabled for the Open-Athena fork: autofix-ci/action fails with `The
4+
# autofix.ci action is not allowed to modify the .github directory` on every
5+
# main push, because our fork edits workflow files (this one, `pages.yml`,
6+
# `build-dist.yml`) outside of autofix.ci's allowlist. We don't depend on the
7+
# bot to commit lint fixes from CI — the husky / lint-staged pre-commit hook
8+
# already runs eslint --fix locally. Manual `workflow_dispatch` stays
9+
# available if anyone wants to re-enable per-push autofix behaviour.
10+
on: workflow_dispatch
11+
1012
permissions:
1113
contents: read
1214

.github/workflows/cr.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Continuous Releases provided by https://pkg.pr.new
2+
#
3+
# Disabled for the Open-Athena fork: pkg-pr-new requires the `pkg-pr-new`
4+
# GitHub App to be installed on the org, which it isn't here. Every push was
5+
# failing with `Check failed (404): The app https://github.com/apps/pkg-pr-new
6+
# is not installed on Open-Athena/slidev`. We don't publish per-PR previews of
7+
# the slidev packages from this fork, so disable auto-triggers. Manual runs
8+
# stay available via `workflow_dispatch` if anyone wants to re-enable per-push
9+
# behaviour after installing the app.
210
name: CR (Continuous Releases)
3-
on: [push, pull_request]
11+
on: workflow_dispatch
412

513
jobs:
614
cr:

0 commit comments

Comments
 (0)