-
-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (40 loc) · 1.75 KB
/
pr_comment_starting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
name: Update the PR Comment
on: # yamllint disable-line rule:truthy
#######################################################################################
# WARNING: DO NOT CHANGE THIS ACTION TO CHECK OUT OR EXECUTE ANY CODE!!!!! #
# #
# This can allow an attacker to gain write access to code in the repository or read #
# any repository secrets! This should _only_ be used to update or add a PR comment. #
# #
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ #
# for more details. #
#######################################################################################
pull_request_target:
paths:
- 'k8s/**'
jobs:
pr-comment:
runs-on: ubuntu-latest
steps:
- name: Find previous comment ID
uses: peter-evans/find-comment@v3
id: fc
with:
token: ${{ secrets.PR_COMMENT_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body-includes: "<!-- 🔥config summary -->"
- name: Render Comment Template
run: |
echo
- name: Comment on PR
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.PR_COMMENT_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
<!-- 🔥config summary -->
## Updating Kubernetes DAG...
Please wait until the job has finished.
edit-mode: replace