diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index 3554c3b1adb5..27c312304b1b 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -186,17 +186,6 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Cache save doesn't work with deep path exclude https://github.com/actions/toolkit/issues/713, remove manually - - name: Cleanup application temporary files - if: >- - github.event_name == 'push' && - matrix.sonar-analyse == 'true' - run: | - rm -rf target/node - rm -rf target/test-results/lcov-report - rm -rf target/site - rm -rf target/generated-sources - rm -rf target/*.original - rm -rf target/*.jar - name: Create application cache if: >- github.event_name == 'push' && @@ -207,6 +196,13 @@ jobs: app/* !app/node_modules !app/package-lock.json + !app/target + app/target/* + !app/target/node + !app/target/site + !app/target/generated-sources + !app/target/*.original + !app/target/*.jar key: application-${{ matrix.name }}-${{ github.sha }} check-angular: permissions: