Skip to content

Commit

Permalink
Merge pull request #4 from motlin/readme
Browse files Browse the repository at this point in the history
Add list item markers to the yaml in the README to make it easier to paste into a project.
  • Loading branch information
allenli873 authored Jan 6, 2025
2 parents 8256161 + db932c0 commit c7ca979
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ The action cleaning mechanism is inspired by this [StackOverflow answer](https:/
Add these near the top of the workflow:

```yaml
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-build # Or any other key you want
uses: twosigma/maven-cache-cleaner@v1
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-build # Or any other key you want
- uses: twosigma/maven-cache-cleaner@v1
```
Any files not accessed within the `~/.m2` directory after the `twosigma/maven-cache-cleaner` step will be deleted at the end of the action, before `actions/cache` saves the directory.
Expand Down

0 comments on commit c7ca979

Please sign in to comment.