From 368703be224d7902b3a4b03094e7e23f800372fc Mon Sep 17 00:00:00 2001 From: Jens Tirsvad Nielsen Date: Sat, 10 Oct 2026 20:28:26 +0800 Subject: [PATCH] Throwaway: run the sync script as a file (TirSystem/github-action issue 69) --- .gitea/workflows/sync-script-trial.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/sync-script-trial.yml diff --git a/.gitea/workflows/sync-script-trial.yml b/.gitea/workflows/sync-script-trial.yml new file mode 100644 index 0000000..fc2fc9b --- /dev/null +++ b/.gitea/workflows/sync-script-trial.yml @@ -0,0 +1,26 @@ +name: Sync script trial + +on: + push: + branches: [ verify-sync-script ] + +jobs: + sync-metadata: + permissions: + contents: read + runs-on: ubuntu-latest + steps: + - name: Fetch the shared script + uses: actions/checkout@v4 + with: + repository: TirSystem/github-action + ref: verify-sync-script + 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