We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e686917 commit 7e98cd4Copy full SHA for 7e98cd4
.github/workflows/sycl_precommit.yml
@@ -41,6 +41,9 @@ jobs:
41
sparse-checkout: |
42
devops/actions/cached_checkout
43
devops/actions/clang-format
44
+ devops/actions/cleanup
45
+ - name: Register cleanup after job is finished
46
+ uses: ./devops/actions/cleanup
47
- name: 'PR commits + 2'
48
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 2 ))" >> "${GITHUB_ENV}"
49
- uses: ./devops/actions/cached_checkout
devops/actions/cleanup/cleanup.js
@@ -1,3 +1,4 @@
1
const path = process.env.GITHUB_WORKSPACE + '/*';
2
console.log('Cleaning ' + path)
3
require('child_process').execSync('rm -rf ' + path);
4
+require('child_process').execSync('rm -rf ' + process.env.GITHUB_WORKSPACE + '/.git');
0 commit comments