Gitea: Standarize to use TOKEN variable in release files
This commit is contained in:
@@ -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
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user