From 268330f03c6464894255eeacc3a3d712a3ddd358 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Thu, 27 Jun 2024 16:07:30 -0700 Subject: [PATCH] d --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 1eeea4e..93f9754 100644 --- a/action.yml +++ b/action.yml @@ -347,3 +347,8 @@ runs: with: name: app-logs-${{ github.job }}-${{ inputs.os }}-${{inputs.workflow_name}}-${{ github.run_id }} path: ${{ github.workspace }}/application.log + + - name: '[Win] Cleanup output files only' + if: ${{ inputs.os == 'windows' && ( success() || failure() ) }} + shell: powershell + run: Remove-Item -Path "${{ github.workspace }}/output/*" -Recurse -Force