This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Delete run history #344
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete run history | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
delete-history: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Azure login | |
uses: azure/login@v1 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- name: Install azure ml latest extension | |
shell: bash | |
run: | | |
az extension remove -n azure-cli-ml || echo "azure-cli-ml extension is not installed." | |
az extension remove -n ml || echo "ml extension is not installed." | |
az extension add -n ml -y | |
- name: Delete run history | |
shell: bash | |
run: ./.github/scripts/delete-run-history.sh ${{ secrets.RESOURCE_GROUP }} ${{ secrets.AML_WORKSPACE_NAME }} |