Update build.yml

This commit is contained in:
Cloudburst 2022-08-14 17:36:56 +02:00 committed by GitHub
parent 1d3fa4e72e
commit 68aa928c7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ on:
branches:
# choose your default branch
- master
- main
# - main
paths-ignore:
- '*.md'
@ -29,6 +29,9 @@ jobs:
ref: "builds"
path: "builds"
- name: Clean old builds
run: rm $GITHUB_WORKSPACE/builds/*.cs3
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
@ -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