From 0fd31b4e1e4474d802e6b3b80bb0f10d9c5d1509 Mon Sep 17 00:00:00 2001 From: Heonbyeong Date: Thu, 22 Aug 2024 15:25:44 +0900 Subject: [PATCH] chore: calculate due date --- .github/workflows/auto-reviewer.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-reviewer.yml b/.github/workflows/auto-reviewer.yml index 47234de7..5472a970 100644 --- a/.github/workflows/auto-reviewer.yml +++ b/.github/workflows/auto-reviewer.yml @@ -51,8 +51,8 @@ jobs: uses: actions/github-script@v6 with: script: | - const createdAt = new Date("${{ github.event.pull_request.created_at }}"); - const label = ${{ env.PR_LABELS }}; + const createdAt = new Date(process.env.CREATED_AT); + const label = process.env.PR_LABELS; const hour_abs = 60 * 60 * 1000; let dueDate; @@ -80,6 +80,9 @@ jobs: const formattedTime = `${year}년 ${month}월 ${day}일 ${period} ${formattedHour}시`; core.setOutput('due_date', formattedTime); + env: + PR_LABELS: ${{ env.PR_LABELS }} + CREATED_AT: ${{ github.event.pull_request.created_at }} - name: Get Slack Member ID id: slack_id