2023-09-29 14:46:53 +00:00
name : Validation Comment
2023-09-19 19:06:09 +00:00
on :
pull_request_target :
branches :
- dev-v*
- release-v*
2024-02-16 18:25:16 +00:00
paths :
- 'assets/**'
- 'charts/**'
- 'packages/**'
2023-09-19 19:06:09 +00:00
jobs :
2023-09-29 14:46:53 +00:00
validation-comment :
2023-09-19 19:06:09 +00:00
name : Make validation comment on PR
runs-on : ubuntu-latest
2024-07-23 23:04:20 +00:00
permissions :
pull-requests : write
2023-09-19 19:06:09 +00:00
steps :
- name : Make validation comment
2024-02-23 16:16:17 +00:00
uses : actions/github-script@v7
2023-09-19 19:06:09 +00:00
with :
github-token : ${{secrets.GITHUB_TOKEN}}
script : |
2024-02-23 16:16:17 +00:00
github.rest.issues.createComment({
2023-09-19 19:06:09 +00:00
issue_number : context.issue.number,
owner : context.repo.owner,
repo : context.repo.repo,
2023-09-29 17:04:38 +00:00
body :
`## Validation steps
- Ensure all container images have repository and tag on the same level to ensure that all container images are included in rancher-images.txt which are used by airgap customers.
<pre>
2024-02-16 18:25:16 +00:00
Ex:-
2023-09-29 17:04:38 +00:00
longhorn-controller :
repository : rancher/hardened-sriov-cni
tag : v2.6.3-build20230913
</pre>
2023-10-04 21:03:18 +00:00
- Add a 👍 (thumbs up) reaction to this comment once done. CI won't pass without this reaction to the github-action bot's latest validation comment.
2023-09-29 17:04:38 +00:00
- Approve the PR to run the CI check.`
2024-07-23 23:04:20 +00:00
})