Skip to content

Commit

Permalink
chore: update PR with text as test of results
Browse files Browse the repository at this point in the history
  • Loading branch information
harmw committed Mar 31, 2022
1 parent e3462c3 commit a8bbf35
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,26 @@ jobs:
# This step will never fail, but will print out the results from step5
run: echo "${{ steps.hadolint5.outputs.results }}"

- name: Update Pull Request
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
script: |
const output = `
#### Hadolint: \`${{ steps.hadolint.outcome }}\`
_output from integration test 5_
\`\`\`
${{ steps.hadolint5.outputs.results }}
\`\`\`
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
#- name: Run integration test 6 - output to file
# # This step will never fail, but will print out rule violations.
# uses: ./
Expand Down

0 comments on commit a8bbf35

Please sign in to comment.