diff --git a/.github/workflows/build-mudlet-win.yml b/.github/workflows/build-mudlet-win.yml index 95125b22308..e614fcd770f 100644 --- a/.github/workflows/build-mudlet-win.yml +++ b/.github/workflows/build-mudlet-win.yml @@ -86,13 +86,13 @@ jobs: - name: (Windows) Login to Azure uses: azure/login@v2 - if: ${{ github.event.pull_request.head.repo.full_name == 'Mudlet/Mudlet' }} + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository with: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: Get Azure access token for code signing shell: pwsh - if: ${{ github.event.pull_request.head.repo.full_name == 'Mudlet/Mudlet' }} + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository run: | $token = (az account get-access-token --resource https://codesigning.azure.net | ConvertFrom-Json).accessToken "::add-mask::$token"