From 68aa928c7ad844fa18c4fda96b3a1a5a93423f13 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Sun, 14 Aug 2022 17:36:56 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b8abd9..d6fc436 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: branches: # choose your default branch - master - - main + # - main paths-ignore: - '*.md' @@ -28,6 +28,9 @@ jobs: with: ref: "builds" path: "builds" + + - name: Clean old builds + run: rm $GITHUB_WORKSPACE/builds/*.cs3 - name: Setup JDK 11 uses: actions/setup-java@v1 @@ -51,5 +54,5 @@ jobs: git config --local user.email "actions@github.com" git config --local user.name "GitHub Actions" git add . - git commit -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit - git push + git commit --amend -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit + git push --force