Skip to content

Commit ebc6935

Browse files
committed
report result as pr comment
1 parent 343653a commit ebc6935

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
env:
1111
REGISTRY: docker.io
1212
IMAGE_NAME: spyduck/cluster-api-provider-proxmox
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1314

1415
jobs:
1516
# add public code coverage reports
@@ -39,4 +40,13 @@ jobs:
3940

4041
# platform = linux/amd64,linux/arm64
4142
- name: Build and push Docker image
42-
run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}"
43+
run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}"
44+
45+
# report result to pr comment if event is pr comment
46+
result:
47+
name: report to pr comment
48+
runs-on: ubunt-latest
49+
if: github.event_name == "issue_comment" && ${{ github.event.issue.pull_request }}
50+
steps:
51+
- run: |
52+
gh pr comment ${{ github.event.issue.number }} -b "[Actions: CI] Check result [here](https://github.com/sp-yduck/cluster-api-provider-proxmox/actions/runs/${{ github.run_number }})"

0 commit comments

Comments
 (0)