Gitea: Standarize to use TOKEN variable in release files

This commit is contained in:
2025-10-25 12:11:58 +02:00
parent 839475f47a
commit d56e946fed
3 changed files with 3 additions and 3 deletions

View File

@@ -200,7 +200,7 @@ jobs:
git lfs pull
- name: Create release
env:
GITEA_TOKEN: ${{ secrets.PIP_REPOSITORY_API_TOKEN }}
TOKEN: ${{ secrets.PIP_REPOSITORY_API_TOKEN }}
shell: bash
run: |
python3 gitea_create_release.py

View File

@@ -13,7 +13,7 @@ gitea_api_url = "https://gitea.psi.ch/api/v1/"
repo_owner = "mx"
repo_name = "jungfraujoch"
gitea_token = os.getenv('GITEA_TOKEN')
gitea_token = os.getenv('TOKEN')
if gitea_token is None:
print("ERROR: Required environment variables not set")
sys.exit(1)

View File

@@ -13,7 +13,7 @@ gitea_api_url = "https://gitea.psi.ch/api/v1/"
repo_owner = "mx"
repo_name = "jungfraujoch"
gitea_token = os.getenv('GITEA_TOKEN')
gitea_token = os.getenv('TOKEN')
if gitea_token is None:
print("ERROR: Required environment variables not set")
sys.exit(1)