@@ -113,7 +113,7 @@ jobs:
113113 if : ${{ steps.check_pr.outputs.proceed == 'true'}}
114114 run : |
115115 MESSAGE_FILE="${{ steps.download.outputs.download-path }}/${{ inputs.artifact_name }}"
116- SIZE=$(wc -c "${MESSAGE_FILE}")
116+ SIZE=$(cat "${MESSAGE_FILE}"|wc -c )
117117 if [[ "${SIZE}" -gt "${{ env.MAX_MESSAGE_SIZE }}" ]] ; then
118118 # truncate the message up to MAX_MESSAGE_SIZE
119119 head -c ${{ env.MAX_MESSAGE_SIZE }} "${MESSAGE_FILE}" > /tmp/truncated
@@ -134,13 +134,15 @@ jobs:
134134 direction : last
135135 token : ${{ secrets.GITHUB_TOKEN }}
136136
137- - name : Acquire write access to PR
138- if : ${{ steps.check_pr.outputs.proceed == 'true'}}
139- id : acquire_write_token
140- uses : actions/create-github-app-token@v2
141- with :
142- app-id : ${{ secrets.CI_WORKFLOWS_PR_APP_ID }}
143- private-key : ${{ secrets.CI_WORKFLOWS_PR_APP_PRIVATE_KEY }}
137+ # - name: Acquire write access to PR
138+ # if: ${{ steps.check_pr.outputs.proceed == 'true'}}
139+ # id: acquire_write_token
140+ # uses: actions/create-github-app-token@v2
141+ # with:
142+ # app-id: ${{ secrets.CI_WORKFLOWS_PR_APP_ID }}
143+ # private-key: ${{ secrets.CI_WORKFLOWS_PR_APP_PRIVATE_KEY }}
144+ # owner: go-openapi
145+ # repo: ${{ inputs.target_repo }}
144146
145147 - name : Create or update PR comment
146148 if : ${{ steps.check_pr.outputs.proceed == 'true'}}
@@ -152,7 +154,7 @@ jobs:
152154 reactions-edit-mode : replace
153155 body-path : ${{ steps.download.outputs.download-path }}/${{ inputs.artifact_name }}
154156 edit-mode : replace
155- token : ${{ steps.acquire_write_token.outputs.token }}
157+ token : ${{ secrets.GITHUB_TOKEN }}
156158
157159 - name : Notify
158160 run : |
0 commit comments