diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index 2db2907eba9a..028316ee05d5 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -185,12 +185,17 @@ jobs: - name: Install OpenHands uses: actions/github-script@v7 + env: + COMMENT_BODY: ${{ github.event.comment.body || '' }} + REVIEW_BODY: ${{ github.event.review.body || '' }} + LABEL_NAME: ${{ github.event.label.name || '' }} + EVENT_NAME: ${{ github.event_name }} with: script: | - const commentBody = `${{ github.event.comment.body || '' }}`.trim(); - const reviewBody = `${{ github.event.review.body || '' }}`.trim(); - const labelName = `${{ github.event.label.name || '' }}`.trim(); - const eventName = `${{ github.event_name }}`.trim(); + const commentBody = process.env.COMMENT_BODY.trim(); + const reviewBody = process.env.REVIEW_BODY.trim(); + const labelName = process.env.LABEL_NAME.trim(); + const eventName = process.env.EVENT_NAME.trim(); // Check conditions const isExperimentalLabel = labelName === "fix-me-experimental";