Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Commit 7511b28

Browse files
Add PR commenting to workflow
1 parent 4988b3b commit 7511b28

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/FAILURE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:no_entry_sign: Some tests failed. See [run](https://github.com/benjamin-maynard/kubernetes-cloud-mysql-backup/actions/runs/{workflow_id}) for more details :poop:

.github/workflows/SUCCESS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:white_check_mark: All tests successfully passed. See [run](https://github.com/benjamin-maynard/kubernetes-cloud-mysql-backup/actions/runs/{workflow_id}) for more details :fire:

.github/workflows/run-pr-tests.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,4 +425,19 @@ jobs:
425425
# Remove /tmp/world.sql and .age
426426
echo "Removing /tmp/world.sql and /tmp/world.sql.age"
427427
rm /tmp/world.sql
428-
rm /tmp/world.sql.age
428+
rm /tmp/world.sql.age
429+
-
430+
name: Comment on PR with Successful
431+
uses: benjamin-maynard/comment-on-pr@master
432+
env:
433+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
434+
with:
435+
filename: .github/workflows/SUCCESS.md
436+
-
437+
name: Comment on PR with Failure
438+
uses: benjamin-maynard/comment-on-pr@master
439+
if: ${{ failure() }}
440+
env:
441+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
442+
with:
443+
filename: .github/workflows/FAILURE.md

0 commit comments

Comments
 (0)