diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5f9905c33..7ea8f741a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,7 @@ jobs: 7z x -y usdx-dlls-i686.zip -ogame "*.dll" env: ARTIFACT_ACCESS_TOKEN: ${{ secrets.MxeActionsReadAccessToken }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create installer run: | del game\*.debug diff --git a/dldlls.py b/dldlls.py index c0153fc34..6201a6239 100755 --- a/dldlls.py +++ b/dldlls.py @@ -15,7 +15,9 @@ } token = os.environ.get('ARTIFACT_ACCESS_TOKEN') -if token != None: +if token == None or token.strip() == '': + token = os.environ.get('GITHUB_TOKEN') +if token != None and token.strip() != '': headers['Authorization'] = 'Bearer ' + token print('Searching for binaries built from commit ' + sha)