Skip to content

Commit

Permalink
[ci-skip] Delete cache on build failure (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealRyGuy authored Jul 3, 2023
1 parent 790a52a commit 2577037
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build
on:
workflow_dispatch:
pull_request:
push:
branches:
Expand All @@ -23,3 +24,9 @@ jobs:
run: ./gradlew applyPatches --no-daemon --stacktrace
- name: Build
run: ./gradlew build --no-daemon --stacktrace
- name: Rebuild on Failure
if: ${{ failure() }}
run: |
./gradlew clean cleanCache
./gradlew applyPatches --no-daemon --stacktrace
./gradlew build --no-daemon --stacktrace

0 comments on commit 2577037

Please sign in to comment.