chore: 调整清理顺序

This commit is contained in:
fit2-zhao 2024-10-15 10:19:56 +08:00
parent c9e33eb146
commit e61a6a9ce1
1 changed files with 4 additions and 2 deletions

View File

@ -30,14 +30,16 @@ jobs:
path: ~/.sonar/cache path: ~/.sonar/cache
key: ${{ runner.os }}-sonar key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar
- name: Remove monitoring-engine JAR
run: rm -rf ~/.m2/repository/io/metersphere/monitoring-engine
- name: Cache Maven packages - name: Cache Maven packages
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: ~/.m2 path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2 restore-keys: ${{ runner.os }}-m2
- name: Remove monitoring-engine JAR
run: rm -rf ~/.m2/repository/io/metersphere/monitoring-engine
- name: Build and analyze - name: Build and analyze
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any