Skip to content

Commit b1a3e49

Browse files
chore(ci): replace mirror.yml with reusable wrapper (#66)
## Summary Replaces this repo's full `mirror.yml` (~145 lines, drift-prone) with a thin ~13-line wrapper that calls `hyperpolymath/standards/.github/workflows/mirror-reusable.yml@e6b2884722350515934d443daf23442f2195796f` (merged via standards#187). Forge selection (GitLab, Bitbucket, Codeberg, SourceHut, Disroot, Gitea, Radicle) remains gated by Actions `vars.<FORGE>_MIRROR_ENABLED` exactly as before. `secrets: inherit` flows the per-forge SSH keys through implicitly. ## Why Estate audit: 289 `mirror.yml` deployments across the org, 75 unique blob SHAs (76% drift). Drift is action-SHA pin churn, not feature variance — the canonical 7-forge job set is identical across sampled variants. Converging behind the reusable cuts ~94k LOC of estate scaffold and means future changes to mirror logic propagate via one SHA bump. Part of estate-wide convergence campaign 2026-05-26 (standards#199 / #187).
1 parent 8ced37b commit b1a3e49

1 file changed

Lines changed: 5 additions & 26 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
name: Mirror to GitLab and Bitbucket
2+
name: Mirror to Git Forges
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [main]
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
1011

1112
jobs:
1213
mirror:
13-
name: Mirror repositories
14-
runs-on: ubuntu-latest
15-
if: github.repository == 'hyperpolymath/panic-attack'
16-
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
19-
with:
20-
fetch-depth: 0
21-
22-
- name: Mirror to GitLab
23-
if: vars.GITLAB_MIRROR_ENABLED == 'true'
24-
env:
25-
GITLAB_TOKEN: ${{ secrets.GITLAB_MIRROR_TOKEN }}
26-
run: |
27-
echo "Mirroring to GitLab..."
28-
# git push --mirror https://oauth2:${GITLAB_TOKEN}@gitlab.com/hyperpolymath/panic-attack.git
29-
30-
- name: Mirror to Bitbucket
31-
if: vars.BITBUCKET_MIRROR_ENABLED == 'true'
32-
env:
33-
BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_MIRROR_TOKEN }}
34-
run: |
35-
echo "Mirroring to Bitbucket..."
36-
# git push --mirror https://x-token-auth:${BITBUCKET_TOKEN}@bitbucket.org/hyperpolymath/panic-attack.git
14+
uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@e6b2884722350515934d443daf23442f2195796f
15+
secrets: inherit

0 commit comments

Comments
 (0)