mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
[ci-skip] Delete cache on build failure (#1361)
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -1,5 +1,6 @@
|
|||||||
name: Build
|
name: Build
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -23,3 +24,9 @@ jobs:
|
|||||||
run: ./gradlew applyPatches --no-daemon --stacktrace
|
run: ./gradlew applyPatches --no-daemon --stacktrace
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./gradlew build --no-daemon --stacktrace
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user