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

View File

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