Skip to content

Commit

Permalink
Clean up after running
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Sep 19, 2023
1 parent 2d279b0 commit 0d24802
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/qa-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ jobs:
if: steps.test.outcome == 'failure'
shell: powershell
run: Get-Content ".\end-to-end\BuildWindowsAgent.log"
- name: Clean up
if: always()
shell: powershell
run: |
# Clean up artifacts
# For some reason, this file interferes with setup-go
Remove-Item -Recurse -Path 'C:\actions-runner\_work\_tool\go' -ErrorAction Ignore
# Remove .gitconfig so that the github URL overrides do not stack
Remove-Item -Recurse -Path "${HOME}\.gitconfig" -ErrorAction Ignore
# Uninstall Appx
Get-AppxPackage -Name "CanonicalGroupLimited.UbuntuProForWindows" | Remove-AppxPackage -ErrorAction Ignore
stop-vm:
name: Clean up the Azure VM
Expand Down

0 comments on commit 0d24802

Please sign in to comment.