Files
PyNix-Website/.gitea/workflows/mirror.yml
T
Moody6 344ba12f7a
Diagnose GitHub sync / diagnose (push) Successful in 1s
Mirror to GitHub / mirror (push) Failing after 7s
Update .gitea/workflows/mirror.yml
2026-10-19 11:48:05 +00:00

31 lines
652 B
YAML

name: Mirror to GitHub
on:
push:
branches:
- main
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Check out Gitea repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push main to GitHub
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
set -eu
AUTH="$(printf 'x-access-token:%s' "$GH_TOKEN" | base64 | tr -d '\n')"
git remote add github \
https://github.com/tafakkur/PyNix-Website.git
git -c http.extraheader="AUTHORIZATION: basic $AUTH" \
push --force github HEAD:refs/heads/main