action.yml
1 name: Comment on CI results 2 description: Comment on CI results 3 inputs: 4 PULL_REQUEST_NUMBER: 5 description: Pull request id 6 required: false 7 default: '0' 8 COMMENT_BODY: 9 description: Text of the comment 10 required: true 11 runs: 12 using: 'composite' 13 steps: 14 - name: Find Comment 15 uses: peter-evans/find-comment@1769778a0c5bd330272d749d12c036d65e70d39d # v2.0.0 16 id: fc 17 with: 18 issue-number: '${{ inputs.PULL_REQUEST_NUMBER }}' 19 body-includes: 'runs/${{ github.run_id }}' 20 21 - name: Update Comment 22 uses: peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32 # v2.0.0 23 with: 24 issue-number: '${{ inputs.PULL_REQUEST_NUMBER }}' 25 body: '${{ inputs.COMMENT_BODY }}' 26 comment-id: ${{ steps.fc.outputs.comment-id }} 27 edit-mode: replace