Skip to content

Commit

Permalink
Merge pull request #130 from sonroyaalmerol/fix-pr-images
Browse files Browse the repository at this point in the history
Fix PR workflow result-encoding
  • Loading branch information
sonroyaalmerol authored Aug 26, 2024
2 parents ec9b520 + fabdefb commit 80d3825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
if: ${{ github.event.comment.body == '/publish' && github.event.issue.pull_request }}
runs-on: ubuntu-latest
outputs:
ref: ${{ steps.get-ref.outputs.ref }}
ref: ${{ steps.get-ref.outputs.result }}
steps:
- name: Get PR Ref
id: get-ref
uses: actions/github-script@v6
with:
result-encoding: string
script: |
const prNumber = context.issue.number;
const response = await github.rest.pulls.get({
Expand All @@ -24,7 +25,6 @@ jobs:
});
const ref = response.data.head.ref;
return ref;
result-encoding: string
build-and-push:
needs: fetch-pr-details
Expand Down

0 comments on commit 80d3825

Please sign in to comment.