fix: rename GITEA_TOKEN to CI_TOKEN in workflows
- Change secret name from GITEA_TOKEN to CI_TOKEN - Gitea doesn't allow secrets starting with GITEA_ - Update all checkout steps to use CI_TOKEN instead
This commit is contained in:
@@ -36,10 +36,10 @@ jobs:
|
|||||||
REF_NAME="main"
|
REF_NAME="main"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use Gitea token if available, otherwise try public access
|
# Use CI token if available, otherwise try public access
|
||||||
if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then
|
if [ -n "${{ secrets.CI_TOKEN }}" ]; then
|
||||||
git clone --depth 1 --branch "$REF_NAME" \
|
git clone --depth 1 --branch "$REF_NAME" \
|
||||||
"https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
"https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
||||||
/workspace/repo
|
/workspace/repo
|
||||||
else
|
else
|
||||||
# Try public HTTPS (works if repository is public)
|
# Try public HTTPS (works if repository is public)
|
||||||
@@ -123,10 +123,10 @@ jobs:
|
|||||||
REF_NAME="main"
|
REF_NAME="main"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use Gitea token if available, otherwise try public access
|
# Use CI token if available, otherwise try public access
|
||||||
if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then
|
if [ -n "${{ secrets.CI_TOKEN }}" ]; then
|
||||||
git clone --depth 1 --branch "$REF_NAME" \
|
git clone --depth 1 --branch "$REF_NAME" \
|
||||||
"https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
"https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
||||||
/workspace/repo
|
/workspace/repo
|
||||||
else
|
else
|
||||||
# Try public HTTPS (works if repository is public)
|
# Try public HTTPS (works if repository is public)
|
||||||
@@ -216,10 +216,10 @@ jobs:
|
|||||||
REF_NAME="main"
|
REF_NAME="main"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use Gitea token if available, otherwise try public access
|
# Use CI token if available, otherwise try public access
|
||||||
if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then
|
if [ -n "${{ secrets.CI_TOKEN }}" ]; then
|
||||||
git clone --depth 1 --branch "$REF_NAME" \
|
git clone --depth 1 --branch "$REF_NAME" \
|
||||||
"https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
"https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
||||||
/workspace/repo
|
/workspace/repo
|
||||||
else
|
else
|
||||||
# Try public HTTPS (works if repository is public)
|
# Try public HTTPS (works if repository is public)
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ jobs:
|
|||||||
REF_NAME="main"
|
REF_NAME="main"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use Gitea token if available, otherwise try public access
|
# Use CI token if available, otherwise try public access
|
||||||
if [ -n "${{ secrets.GITEA_TOKEN }}" ]; then
|
if [ -n "${{ secrets.CI_TOKEN }}" ]; then
|
||||||
git clone --depth 1 --branch "$REF_NAME" \
|
git clone --depth 1 --branch "$REF_NAME" \
|
||||||
"https://${{ secrets.GITEA_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
"https://${{ secrets.CI_TOKEN }}@git.michaelschiemer.de/${REPO}.git" \
|
||||||
/workspace/repo
|
/workspace/repo
|
||||||
else
|
else
|
||||||
# Try public HTTPS (works if repository is public)
|
# Try public HTTPS (works if repository is public)
|
||||||
|
|||||||
Reference in New Issue
Block a user