File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -153,17 +153,25 @@ jobs:
153153 cat hadolint.txt >> "$GITHUB_OUTPUT"
154154 echo "EOF" >> "$GITHUB_OUTPUT"
155155
156+ - name : Read Hadolint report file
157+ id : read_hadolint
158+ if : ${{ inputs.hadolint }}
159+ run : |
160+ echo "report<<EOF" >> "$GITHUB_OUTPUT"
161+ cat hadolint.txt >> "$GITHUB_OUTPUT"
162+ echo "EOF" >> "$GITHUB_OUTPUT"
163+
156164 - name : Find existing Hadolint comment
157- if : github.event_name == 'pull_request' && inputs.hadolint
158165 id : find_hadolint
166+ if : ${{ inputs.hadolint }}
159167 uses : peter-evans/find-comment@v3
160168 with :
161169 issue-number : ${{ github.event.pull_request.number }}
162170 comment-author : ' github-actions[bot]'
163171 body-includes : ' Hadolint Dockerfile Lint Results'
164172
165173 - name : Create or update Hadolint comment
166- if : github.event_name == 'pull_request' && inputs.hadolint && steps.read_hadolint.outputs.report != ''
174+ if : ${{ inputs.hadolint && steps.read_hadolint.outputs.report != '' }}
167175 uses : peter-evans/create-or-update-comment@v4
168176 with :
169177 token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments