Skip to content

Commit 7e98cd4

Browse files
[CI] More cleanup for the lint task (#10073)
1 parent e686917 commit 7e98cd4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/sycl_precommit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
sparse-checkout: |
4242
devops/actions/cached_checkout
4343
devops/actions/clang-format
44+
devops/actions/cleanup
45+
- name: Register cleanup after job is finished
46+
uses: ./devops/actions/cleanup
4447
- name: 'PR commits + 2'
4548
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 2 ))" >> "${GITHUB_ENV}"
4649
- uses: ./devops/actions/cached_checkout

devops/actions/cleanup/cleanup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const path = process.env.GITHUB_WORKSPACE + '/*';
22
console.log('Cleaning ' + path)
33
require('child_process').execSync('rm -rf ' + path);
4+
require('child_process').execSync('rm -rf ' + process.env.GITHUB_WORKSPACE + '/.git');

0 commit comments

Comments
 (0)