Fix release workflow default branch detection (#1585)

Ensure that the github script to retrieve the default branch uses string
encoding instead of json. This will strip the unnecessary quotes
preventing matching.
This commit is contained in:
Darragh Bailey 2022-09-08 18:14:27 +01:00 committed by GitHub
parent ba2c7be494
commit 84e2fed626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ jobs:
id: remote_default_branch
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
script: |
repo = await github.repos.get({
owner: context.repo.owner,