Skip to content

Commit

Permalink
report result as pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sp-yduck committed Nov 11, 2023
1 parent 343653a commit ebc6935
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
REGISTRY: docker.io
IMAGE_NAME: spyduck/cluster-api-provider-proxmox
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
# add public code coverage reports
Expand Down Expand Up @@ -39,4 +40,13 @@ jobs:

# platform = linux/amd64,linux/arm64
- name: Build and push Docker image
run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}"
run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}"

# report result to pr comment if event is pr comment
result:
name: report to pr comment
runs-on: ubunt-latest
if: github.event_name == "issue_comment" && ${{ github.event.issue.pull_request }}
steps:
- run: |
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 comments on commit ebc6935

Please sign in to comment.