Skip to content

Commit

Permalink
fix cat pr_context & commits from json
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo committed Oct 13, 2022
1 parent 1155f11 commit 3c9a23f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
run: |
echo "{
\"pr_number\": ${{ github.event.number }},
\"before\": \"${{ github.event.before }}\",
\"after\": \"${{ github.event.after }}\",
\"sha\": \"${{ GITHUB_SHA }}\",
\"ref\": \"${{ GITHUB_REF }}\",
\"from_branch\": \"${{ github.head_ref }}\",
\"to_branch\": \"${{ github.base_ref }}\",
\"html\": \"${{ github.event.pull_request._links.html.href }}\",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
id: output_pr_context
shell: bash
run: |
content="$(cat pr_context.json)"
content="$(cat pr_context.json/pr_context.json)"
echo "${content}"
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
id: output_pr_context
shell: bash
run: |
content="$(cat pr_context.json)"
content="$(cat pr_context.json/pr_context.json)"
echo "${content}"
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
Expand Down

0 comments on commit 3c9a23f

Please sign in to comment.