Files
PyNix-Website/.gitea/workflows/diagnose.yaml
T
Moody6 867cc17ebf
Diagnose GitHub sync / diagnose (push) Successful in 0s
Mirror to GitHub / mirror (push) Successful in 2s
Update .gitea/workflows/diagnose.yaml
2026-10-19 11:44:51 +00:00

35 lines
766 B
YAML

name: Diagnose GitHub sync
on:
push:
branches:
- main
workflow_dispatch:
jobs:
diagnose:
runs-on: ubuntu-latest
steps:
- name: Check GitHub access
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
set -eu
REPO="tafakkur/PyNix-Website"
AUTH="$(printf 'x-access-token:%s' "$GH_TOKEN" | base64 | tr -d '\n')"
git_auth() {
git -c http.extraheader="AUTHORIZATION: basic $AUTH" "$@"
}
echo "Checking GitHub repository access..."
git_auth ls-remote \
"https://github.com/${REPO}.git" refs/heads/main
echo "Checking source commit..."
echo "$GITHUB_SHA"
echo "GitHub read access succeeded."