add new input
name: amlarc-training-test
on:
schedule:
- - cron: "0 0 * * *"
+ - cron: "0 23 * * *"
workflow_dispatch:
inputs:
LOCATION:
@@ -12,6 +12,10 @@ on:
description: 'Release version: experimental, staging or stable'
required: false
default: 'staging'
+ CLEANUP_CLUSTER:
+ description: 'Whether to delete cluster: true or false'
+ required: false
+ default: 'fasle'
jobs:
training:
runs-on: ubuntu-latest
@@ -104,8 +108,10 @@ jobs:
run: |
bash .github/amlarc-tool.sh delete_endpoints
bash .github/amlarc-tool.sh delete_extension
+ if [ "${{ github.event.inputs.CLEANUP_CLUSTER }}" == "true" ] ; then
bash .github/amlarc-tool.sh delete_arc
bash .github/amlarc-tool.sh delete_aks
+ fi
