kafka/.forgejo/workflows/mirror.yml
Franz Kafka 8a7b840b69 fix(ci): use raw git push for GitHub mirror
ad-m/github-push-action chokes on secret substitution in act_runner.
Use plain git commands instead — no third-party action needed.
2026-03-21 21:04:31 +00:00

20 lines
482 B
YAML

name: Mirror to GitHub
on:
push:
branches: [main]
tags: ['v*']
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
with:
fetch-depth: 0
- name: Push to GitHub mirror
run: |
git remote add github "https://x-access-token:${{ secrets.GH_MIRROR_TOKEN }}@github.com/metamorphosis-dev/kafka.git"
git push github "${{ github.ref_name }}" --force