Skip to content

Commit

Permalink
fix: auto_merge_approve_pr.yml에서 출력을 환경 변수로 전환
Browse files Browse the repository at this point in the history
  • Loading branch information
minjungw00 committed Nov 11, 2024
1 parent 9b046ca commit a121df7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/auto_merge_approved_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
- name: "Check Approvals"
id: check
uses: actions/github-script@v6
env:
PR_RESULT: ${{ steps.pr.outputs.result }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const pr = JSON.parse(`${{ steps.pr.outputs.result }}`);
const pr = JSON.parse(process.env.PR_RESULT);
const reviews = await github.rest.pulls.listReviews({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit a121df7

Please sign in to comment.