Skip to content

Commit

Permalink
wip: Update control workflow to add comment on success or failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed May 9, 2024
1 parent a2b5a3c commit 8f4391b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/control-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,31 @@ jobs:
INSTANCE_NAME: ${{ steps.define.outputs.instance_name }}
COMMAND_NAME: ${{ steps.command.outputs.command_name }}

- name: command results comment (success)
if:
${{ steps.command.outputs.continue == 'true' &&
steps.check_instance.outputs.exists == 'true' && success() }}
uses: peter-evans/[email protected]
with:
issue-number: ${{ github.event.issue.number }}
body: |
### Command Results ✅
`${{ steps.command.outputs.command_name }}` command successfully applied to **${{ steps.define.outputs.instance_name }}** instance.
- name: command results comment (failure)
if:
${{ steps.command.outputs.continue == 'true' &&
steps.check_instance.outputs.exists == 'true' && failure() }}
uses: peter-evans/[email protected]
with:
issue-number: ${{ github.event.issue.number }}
body: |
### Command Results ❌
`${{ steps.command.outputs.command_name }}` command failed to applied to **${{ steps.define.outputs.instance_name }}** instance.
See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
# - name: Issue Forms Body Parser
# id: parse
# uses: zentered/[email protected]
Expand Down

0 comments on commit 8f4391b

Please sign in to comment.