Skip to content

Upstream

Upstream #4074

Workflow file for this run

name: Upstream
on:
schedule:
- cron: "0 */1 * * *"
jobs:
upstream:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Configure Git
run: git config --global user.email "action@github.com" && git config --global user.name "Github Action"
- name: Update upstream
run: |
./scripts/updateUpstream.sh
- if: ${{ hashFiles('.updated-upstream') != '' }}
name: Build
run: ./gradlew createMojmapPaperclipJar --stacktrace
- if: ${{ hashFiles('.updated-upstream') != '' }}
name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: SkyblockPurpur-SNAPSHOT
path: ./build/libs/*
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}