]> git.madduck.net Git - etc/vim.git/blob - .github/workflows/diff_shades_comment.yml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Bump docker/setup-qemu-action from 1 to 2 (#3056)
[etc/vim.git] / .github / workflows / diff_shades_comment.yml
1 name: diff-shades-comment
2
3 on:
4   workflow_run:
5     workflows: [diff-shades]
6     types: [completed]
7
8 permissions:
9   pull-requests: write
10
11 jobs:
12   comment:
13     runs-on: ubuntu-latest
14     steps:
15       - uses: actions/checkout@v3
16       - uses: actions/setup-python@v3
17
18       - name: Install support dependencies
19         run: |
20           python -m pip install pip --upgrade
21           python -m pip install click packaging urllib3
22
23       - name: Get details from initial workflow run
24         id: metadata
25         env:
26           GITHUB_TOKEN: ${{ github.token }}
27         run: >
28           python scripts/diff_shades_gha_helper.py comment-details
29           ${{github.event.workflow_run.id }}
30
31       - name: Try to find pre-existing PR comment
32         if: steps.metadata.outputs.needs-comment == 'true'
33         id: find-comment
34         uses: peter-evans/find-comment@1769778a0c5bd330272d749d12c036d65e70d39d
35         with:
36           issue-number: ${{ steps.metadata.outputs.pr-number }}
37           comment-author: "github-actions[bot]"
38           body-includes: "diff-shades"
39
40       - name: Create or update PR comment
41         if: steps.metadata.outputs.needs-comment == 'true'
42         uses: peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32
43         with:
44           comment-id: ${{ steps.find-comment.outputs.comment-id }}
45           issue-number: ${{ steps.metadata.outputs.pr-number }}
46           body: ${{ steps.metadata.outputs.comment-body }}
47           edit-mode: replace