Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Ethiack Job Manager Action'
description: 'Integrates Ethiack Job Manager with GitHub Actions for managing Artiacker jobs.'
author: 'Ethiack, Lda.'
author: 'Ethiack, Lda'

branding:
icon: 'search'
Expand All @@ -18,6 +18,14 @@ inputs:
description: 'The URL of the target service. Required for commands "launch", and "check".'
required: false
default: ''
beacon_id:
description: 'The beacon ID of the service. Optional for commands "launch" and "check".'
required: false
default: ''
event_slug:
description: 'The event slug of the service. Optional for commands "launch" and "check".'
required: false
default: ''
args:
description: 'The arguments to pass to the job.'
required: false
Expand Down Expand Up @@ -68,7 +76,18 @@ runs:
exit 1
fi
fi

## Add beacon_id input if provided for launch or check
if [ "${{ inputs.command }}" = "launch" ] || [ "${{ inputs.command }}" = "check" ]; then
if [ -n "${{ inputs.beacon_id }}" ]; then
COMMAND="$COMMAND --beacon-id ${{ inputs.beacon_id }}"
fi
fi
## Add event_slug input if provided for launch or check
if [ "${{ inputs.command }}" = "launch" ] || [ "${{ inputs.command }}" = "check" ]; then
if [ -n "${{ inputs.event_slug }}" ]; then
COMMAND="$COMMAND --event-slug ${{ inputs.event_slug }}"
fi
fi
## Add uuid input if needed
if [ "${{ inputs.command }}" = "cancel" ] || [ "${{ inputs.command }}" = "info" ] || [ "${{ inputs.command }}" = "status" ] || [ "${{ inputs.command }}" = "success" ] || [ "${{ inputs.command }}" = "await" ]; then
if [ -n "${{ inputs.uuid }}" ]; then
Expand Down