Gitea rejects secret names matching ^GIT(EA|HUB)_ per services/secrets/validation.go. Renamed to HERMES_GITEA_TOKEN and updated workflow + README accordingly. Assisted-By: hermes-agent:minimax-m3
38 lines
925 B
YAML
38 lines
925 B
YAML
name: fork-sync
|
|
on:
|
|
schedule:
|
|
- cron: '0 * * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup git
|
|
run: |
|
|
git config --global user.name "fork-sync[bot]"
|
|
git config --global user.email "hermes@rudenk.local"
|
|
git config --global advice.detachedHead false
|
|
|
|
- name: setup python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: sync forks
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.HERMES_GITEA_TOKEN }}
|
|
WORK_ROOT: ${{ github.workspace }}/work
|
|
run: |
|
|
python tools/fork-sync.py > out.txt 2>&1 || true
|
|
cat out.txt
|
|
if [ -s out.txt ]; then
|
|
echo "::group::fork-sync output"
|
|
cat out.txt
|
|
echo "::endgroup::"
|
|
exit 1
|
|
fi
|