kafka/.forgejo/workflows/mirror.yml
Franz Kafka 52395c7cd0
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 9m27s
Mirror to GitHub / mirror (push) Failing after 3s
fix(ci): use GHCR_TOKEN for GitHub mirror
Reuse the same token secret for both Docker push and git mirror.
2026-03-21 21:05:43 +00:00

20 lines
477 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.GHCR_TOKEN }}@github.com/metamorphosis-dev/kafka.git"
git push github "${{ github.ref_name }}" --force