slawekjaranowski commented on code in PR #54:
URL:
https://github.com/apache/maven-gh-actions-shared/pull/54#discussion_r915784210
##########
.github/workflows/maven-verify.yml:
##########
@@ -208,7 +208,12 @@ jobs:
shell: bash
- name: Clean Ensuring no file handle remains open on windows
- run: ./mvnw clean --errors --batch-mode --show-version
+ run: ./mvnw clean --errors --batch-mode --show-version
+
+ - name: clean local repo to ensure no locks remains on files
+ if: always()
+ run: rm -rf ~/.m2/
Review Comment:
Look this:
https://github.com/apache/maven-gh-actions-shared/runs/7229106563?check_suite_focus=true
during jdk setup cache was not found ....
```
maven cache is not found
```
and in Post Set up ...
```
Post job cleanup.
/usr/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C
/home/runner/work/maven-gh-actions-shared/maven-gh-actions-shared --files-from
manifest.txt
Cache Size: ~0 MB
([2](https://github.com/apache/maven-gh-actions-shared/runs/7229106563?check_suite_focus=true#step:25:2)2
B)
Cache saved successfully
Cache saved with the key:
setup-java-Linux-maven-ef22769a5d4287[3](https://github.com/apache/maven-gh-actions-shared/runs/7229106563?check_suite_focus=true#step:25:3)0dd6f3ae78cb7b111[4](https://github.com/apache/maven-gh-actions-shared/runs/7229106563?check_suite_focus=true#step:25:4)17e69d4f[5](https://github.com/apache/maven-gh-actions-shared/runs/7229106563?check_suite_focus=true#step:25:5)666cdf137d77aea799a2d7
```
so next build job can found cache ... and it is empty
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]