All checks were successful
Mirror to GitHub / mirror (push) Successful in 7s
- packaging/arch/PKGBUILD: builds the bakery CLI from the workspace - .forgejo/workflows/package.yml: publishes to the [breadway] Arch registry on tag - .forgejo/workflows/mirror.yml: mirrors to GitHub Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
683 B
YAML
21 lines
683 B
YAML
name: Mirror to GitHub
|
|
|
|
on:
|
|
push:
|
|
branches: ['**']
|
|
tags: ['**']
|
|
|
|
jobs:
|
|
mirror:
|
|
runs-on: [self-hosted, hestia]
|
|
steps:
|
|
- name: Mirror to GitHub
|
|
run: |
|
|
set -euo pipefail
|
|
git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git
|
|
cd repo.git
|
|
# Mirror only branches and tags (not refs/pull/*, which GitHub rejects);
|
|
# --prune deletes GitHub refs that no longer exist on Forgejo.
|
|
git push --prune \
|
|
"https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Breadway/bread-ecosystem.git" \
|
|
'+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*'
|