Skip to content

Commit

Permalink
Add Purge Data parameter in htcmock
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneider-aneo committed Oct 28, 2024
1 parent 58549ec commit 55a5934
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion htcmock/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ inputs:
description: "A name that is provided as the value for key 'SessionName' for the 'HtcMock__Options' option"
required: false
default: "cicd"
purge-data:
description: "Whether to purge session after execution"
required: false
default: "false"
outputs:
session-name:
description: "Name of the HTC Mock session to help retrieve its id"
Expand All @@ -40,11 +44,12 @@ runs:
SUBTASKS_LEVELS: ${{ inputs.subtasks-levels }}
SESSION_NAME: ${{ inputs.session-name }}
GRPC_CLIENT_ENDPOINT: ${{ inputs.grpc-client-endpoint }}
PURGE_DATA: ${{ inputs.purge-data }}
ARMONIK_KUBERNETES_NAMESPACE: ${{ inputs.armonik-kubernetes-namespace }}
run: |
set -ex
cd tools/ci
echo "session-name=$SESSION_NAME" >> "$GITHUB_OUTPUT"
sed "s/@@NTASKS@@/$NTASKS/g; s/@@SUBTASKS_LEVELS@@/$SUBTASKS_LEVELS/g; s/@@SESSION_NAME@@/$SESSION_NAME/g; s/@@GRPC_CLIENT_ENDPOINT@@/$GRPC_CLIENT_ENDPOINT/g" \
sed "s/@@NTASKS@@/$NTASKS/g; s/@@SUBTASKS_LEVELS@@/$SUBTASKS_LEVELS/g; s/@@SESSION_NAME@@/$SESSION_NAME/g; s/@@GRPC_CLIENT_ENDPOINT@@/$GRPC_CLIENT_ENDPOINT/g; s/@@PURGE_DATA@@/$PURGE_DATA/g" \
${{ inputs.working-directory }}/tools/ci/htcmock-job-template.yml |
kubectl apply -f -

0 comments on commit 55a5934

Please sign in to comment.