test mirror
This commit is contained in:
1 parent
cb73fce0d7
commit
0d26916458
1 file changed
+26
@@ -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
|
||||
Reference in new issue
Block a user