Skip to content

Commit

Permalink
chore: add await to get api call result (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoo1984 authored Jan 27, 2024
1 parent 1b84ba4 commit 790f318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
script: |
let releaseObj;
if (${{ github.event.inputs.release_tag != '' }}) {
releaseObj = github.rest.repos.getReleaseByTag({
releaseObj = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: "${{ github.event.inputs.release_tag }}"
})
} else {
releaseObj = github.rest.repos.getLatestRelease({
releaseObj = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
})
Expand Down

0 comments on commit 790f318

Please sign in to comment.