Adding status output.
This commit is contained in:
+8
-1
@@ -47,6 +47,11 @@ inputs:
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
outputs:
|
||||
approval_status:
|
||||
description: "Final approval status: approved or denied"
|
||||
value: ${{ steps.wait-for-manual-approval.outputs.approval_status }}
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@@ -55,6 +60,7 @@ runs:
|
||||
run: chmod +x "$GITHUB_ACTION_PATH/wait-for-approval.sh" "$GITHUB_ACTION_PATH/notify"
|
||||
|
||||
- name: Run wait-for-approval
|
||||
id: wait-for-manual-approval
|
||||
shell: bash
|
||||
env:
|
||||
TOKEN: ${{ inputs.token }}
|
||||
@@ -69,4 +75,5 @@ runs:
|
||||
APPRISE_API_URL: ${{ inputs.apprise_api_url }}
|
||||
INITIAL_COMMENT: ${{ inputs.initial_comment }}
|
||||
run: |
|
||||
bash "$GITHUB_ACTION_PATH/wait-for-approval.sh"
|
||||
status=$(bash "$GITHUB_ACTION_PATH/wait-for-approval.sh")
|
||||
echo "approval_status=$status" >> "$GITHUB_OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user