Files
git-workflows/.gitea/scoped_workflows/sync-github-metadata.yml
T
Tirsvad db102adc4e
Validate workflows / validate (pull_request) Successful in 58s
Use the new repository name TirSystem/git-workflows in live files
The repository was renamed from github-action to git-workflows. Updates AGENTS.md, the README, guides, workflows, tests and the wiki (translation hash stamps refreshed; only the URL changed). History (ADRs, reviews, milestones, CHANGELOG) and the external tailscale/github-action are unchanged.
2026-10-26 22:48:51 +08:00

35 lines
1.0 KiB
YAML

name: Sync GitHub mirror metadata
# Scoped workflow: it runs in every repository of an organization. The script
# is a file of TirSystem/git-workflows (tools/sync_github_metadata.py), fetched
# with a checkout so that it is readable, lintable and tested as a file
# (MIL-004 task 6). The repository is public, so no token is needed.
on:
push:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: "17 3 * * *"
jobs:
sync-metadata:
permissions:
contents: read
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Fetch the shared script
uses: actions/checkout@v4.2.2
with:
repository: TirSystem/git-workflows
ref: v1
path: shared-scripts
- name: Sync description and topics
env:
GITEA_API_URL: ${{ gitea.api_url }}
GITEA_CREDENTIALS: ${{ secrets.TOKEN_FOR_GITEA }}
SOURCE_REPOSITORY: ${{ gitea.repository }}
PAT_FOR_GITHUB: ${{ secrets.PAT_FOR_GITHUB }}
run: python3 shared-scripts/tools/sync_github_metadata.py