![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [peter-evans/find-comment](https://github.com/peter-evans/find-comment) from 2.4.0 to 3.0.0.
- [Release notes](https://github.com/peter-evans/find-comment/releases)
- [Commits](a54c31d7fa...d5fe37641a
)
---
updated-dependencies:
- dependency-name: peter-evans/find-comment
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: diff-shades-comment
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [diff-shades]
|
|
types: [completed]
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
comment:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "*"
|
|
|
|
- name: Install support dependencies
|
|
run: |
|
|
python -m pip install pip --upgrade
|
|
python -m pip install click packaging urllib3
|
|
|
|
- name: Get details from initial workflow run
|
|
id: metadata
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
run: >
|
|
python scripts/diff_shades_gha_helper.py comment-details
|
|
${{github.event.workflow_run.id }}
|
|
|
|
- name: Try to find pre-existing PR comment
|
|
if: steps.metadata.outputs.needs-comment == 'true'
|
|
id: find-comment
|
|
uses: peter-evans/find-comment@d5fe37641ad8451bdd80312415672ba26c86575e
|
|
with:
|
|
issue-number: ${{ steps.metadata.outputs.pr-number }}
|
|
comment-author: "github-actions[bot]"
|
|
body-includes: "diff-shades"
|
|
|
|
- name: Create or update PR comment
|
|
if: steps.metadata.outputs.needs-comment == 'true'
|
|
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
|
|
with:
|
|
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
|
issue-number: ${{ steps.metadata.outputs.pr-number }}
|
|
body: ${{ steps.metadata.outputs.comment-body }}
|
|
edit-mode: replace
|