Skip to content

Commit

Permalink
fix: update env var setting
Browse files Browse the repository at this point in the history
  • Loading branch information
botanical committed Dec 18, 2024
1 parent 1eb663e commit a84ebe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit a84ebe9

Please sign in to comment.