diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-06-01 10:06:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 10:06:10 +0200 |
commit | c2b91446e0e7a838535e2d6eb1fe4ee8f795b410 (patch) | |
tree | 695520450097bc78fba053c2b48b2b6a9cfa7dc6 /.github | |
parent | a0786d3cbb120c0969726dbf082d9ea667c04bfc (diff) | |
download | pylint-git-c2b91446e0e7a838535e2d6eb1fe4ee8f795b410.tar.gz |
Add commit hash in the primer comment (#6783)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/primer_comment.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/primer_comment.yaml b/.github/workflows/primer_comment.yaml index c31058f70..ea319db9b 100644 --- a/.github/workflows/primer_comment.yaml +++ b/.github/workflows/primer_comment.yaml @@ -111,7 +111,10 @@ jobs: - name: Compare outputs run: | . venv/bin/activate - python tests/primer/primer_tool.py compare --base-file=output_${{ steps.python.outputs.python-version }}_main.txt --new-file=output_${{ steps.python.outputs.python-version }}_pr.txt + python tests/primer/primer_tool.py compare \ + --commit=${{ github.event.workflow_run.head_sha }} \ + --base-file=output_${{ steps.python.outputs.python-version }}_main.txt \ + --new-file=output_${{ steps.python.outputs.python-version }}_pr.txt - name: Post comment id: post-comment uses: actions/github-script@v6 |