From a84ebe9f02e4530de669a67f5ab9b0d44ed137ee Mon Sep 17 00:00:00 2001 From: Jennifer Tran <12633533+botanical@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:28:05 -0800 Subject: [PATCH] fix: update env var setting --- .github/workflows/pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e11bfedc..74d24ca8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -288,7 +288,7 @@ jobs: if: success() env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT_ID: ${{ steps.init-comment.outputs.COMMENT_ID }} + COMMENT_ID: ${{ steps.publish-collections.outputs.COMMENT_ID }} run: | echo "COMMENT_ID: $COMMENT_ID" echo "${{ github.repository }}" @@ -303,7 +303,7 @@ jobs: if: failure() && steps.create-pr.outcome == 'failure' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT_ID: ${{ steps.init-comment.outputs.COMMENT_ID }} + COMMENT_ID: ${{ steps.publish-collections.outputs.COMMENT_ID }} run: | CURRENT_BODY=$(gh api -H "Authorization: token $GITHUB_TOKEN" /repos/${{ github.repository }}/issues/comments/$COMMENT_ID --jq '.body') UPDATED_BODY="$CURRENT_BODY @@ -316,7 +316,7 @@ jobs: if: failure() && steps.create-pr.outcome != 'failure' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT_ID: ${{ steps.init-comment.outputs.COMMENT_ID }} + COMMENT_ID: ${{ steps.publish-collections.outputs.COMMENT_ID }} run: | WORKFLOW_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" CURRENT_BODY=$(gh api -H "Authorization: token $GITHUB_TOKEN" /repos/${{ github.repository }}/issues/comments/$COMMENT_ID --jq '.body')