Skip to content

Commit

Permalink
Merge pull request #897 from s09bQ5/dll-release-dl-fix
Browse files Browse the repository at this point in the history
Fix downloading of DLL releases
  • Loading branch information
barbeque-squared committed Sep 10, 2024
2 parents 7895829 + 7e83966 commit 12448ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion dldlls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12448ee

Please sign in to comment.