-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(actions): update actions to include continue and notify
- Loading branch information
1 parent
902e735
commit 79e76e3
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Notify Lula | ||
description: "Comment on PR to notify Lula Team" | ||
|
||
inputs: | ||
state: | ||
description: 'state of the comment update' | ||
required: true | ||
default: '' | ||
flavor: | ||
description: 'flavor of the comment update' | ||
required: true | ||
default: '' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Find Comment | ||
uses: peter-evans/find-comment@v3 | ||
id: fc | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
body-includes: Compliance ${{ inputs.flavor }} Evaluation | ||
|
||
- name: Create comment | ||
if: ${{ steps.fc.outputs.comment-id == '' && inputs.state == 'failure'}} | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
Compliance ${{ inputs.flavor }} Evaluation: ${{ inputs.state }} | ||
CC: @defenseunicorns/lula-dev | ||
- name: Update comment | ||
if: ${{ steps.fc.outputs.comment-id != '' }} | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
body: | | ||
Compliance ${{ inputs.flavor }} Evaluation: ${{ inputs.state }} | ||
CC: @defenseunicorns/lula-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters