Skip to content

Commit

Permalink
Merge pull request #2 from tamu-edu/bugfix/add-flow-id-parameter
Browse files Browse the repository at this point in the history
Add flow id parameter
  • Loading branch information
bdd4329 authored Feb 10, 2025
2 parents 348ded2 + 1970ec4 commit 4175cef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ steps:
tdx-secret: ${{ secrets.TDX_SECRET }}
action-version: v1.0
tdx-request-id: 111
tdx-flow-id: 253422cd-fa19-4362-86ef-983fab35eb53
tdx-action: close_request
tdx-input1: ""
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -32,6 +33,7 @@ steps:
tdx-secret: ${{ secrets.TDX_SECRET }}
action-version: v1.0
tdx-request-id: 112
tdx-flow-id: 253422cd-fa19-4362-86ef-983fab35eb53
tdx-action: update_request_variable_and_close_request
tdx-input1: resource_url
tdx-input2: http://some.resource.url
Expand Down
7 changes: 6 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ inputs:
- add_comment_and_notify
- close_request
- update_request_variable_and_close_request
tdx-flow-id:
type: string
title: TDx Flow ID (iPaaS)
description: The ID of the TDx flow to use (iPaaS flow)
required: true

# Usage:
# The inputs to use for the TDx action. The inputs are
Expand Down Expand Up @@ -90,7 +95,7 @@ runs:
TDX_ACCOUNT_ID: ${{ inputs.tdx-account-id }}
TDX_SECRET: ${{ inputs.tdx-secret }}
run: |
ARGS="--request_id ${{ inputs.tdx-request-id }}"
ARGS="--request_id ${{ inputs.tdx-request-id }} --flow_id ${{ inputs.tdx-flow-id }}"
if [[ "${{ inputs.tdx-action }}" == "add_comment_and_notify" ]]; then
ARGS="${ARGS} add_comment_and_notify --comment \"${{ inputs.tdx-input1 }}\""
elif [[ "${{ inputs.tdx-action }}" == "update_request_variable_and_close_request" ]]; then
Expand Down

0 comments on commit 4175cef

Please sign in to comment.