test token
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Has been skipped
Pull Request Pipeline / update-version (pull_request) Failing after 4s

This commit is contained in:
2026-01-17 20:21:25 +01:00
parent 3acd4e8cfe
commit 2ab07ee795

View File

@@ -125,7 +125,7 @@ jobs:
strategy: 'patch' strategy: 'patch'
path: './pubspec.yaml' path: './pubspec.yaml'
- name: Commit version update 2 - name: Commit version update
run: | run: |
git fetch origin ${{ gitea.head_ref }} git fetch origin ${{ gitea.head_ref }}
git checkout ${{ gitea.head_ref }} git checkout ${{ gitea.head_ref }}
@@ -137,4 +137,23 @@ jobs:
# git push # git push
git push https://oauth2:${{ secrets.BOT_TOKEN }}@git.yannick-weigert.de/liquid-development/game-tracker.git HEAD:${{ gitea.head_ref }} git push https://oauth2:${{ secrets.BOT_TOKEN }}@git.yannick-weigert.de/liquid-development/game-tracker.git HEAD:${{ gitea.head_ref }}
- name: Test Token
run: |
echo "Testing token permissions..."
# Token-Format prüfen
if [ -z "${{ secrets.BOT_TOKEN }}" ]; then
echo "❌ BOT_TOKEN ist nicht gesetzt"
exit 1
fi
# API-Call zum Prüfen der Token-Berechtigungen
curl -f -H "Authorization: token ${{ secrets.BOT_TOKEN }}" \
https://git.yannick-weigert.de/api/v1/user
# Repository-Zugriff testen
curl -f -H "Authorization: token ${{ secrets.BOT_TOKEN }}" \
https://git.yannick-weigert.de/api/v1/repos/liquid-development/game-tracker
echo "✅ Token ist gültig"