From 0d26916458b267ed6501abf6b5c4fc5cf28e5370 Mon Sep 17 00:00:00 2001 From: Moody6 Date: Mon, 19 Oct 2026 11:40:50 +0000 Subject: [PATCH] test mirror --- .gitea/workflows/diagnose.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/diagnose.yaml diff --git a/.gitea/workflows/diagnose.yaml b/.gitea/workflows/diagnose.yaml new file mode 100644 index 0000000..994f1cb --- /dev/null +++ b/.gitea/workflows/diagnose.yaml @@ -0,0 +1,26 @@ + +name: Diagnose GitHub mirror + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + diagnose: + runs-on: ubuntu-latest + steps: + - name: Check source and credentials + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + run: | + set -eu + echo "Triggered ref: $GITHUB_REF" + echo "Source commit: $GITHUB_SHA" + if [ -z "$GH_TOKEN" ]; then + echo "ERROR: GH_TOKEN is empty or unavailable" + exit 1 + fi + echo "GitHub token is present" + git --version