diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d9f01b17..9399b666c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,6 @@ name: Build on: + workflow_dispatch: pull_request: push: branches: @@ -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