Skip to content

Upstream

Upstream #332

Workflow file for this run

name: Upstream
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
upstream:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: 'gradle'
- name: Configure Git
run: git config --global user.email "action@github.com" && git config --global user.name "Github Action"
- name: Apply patches
run: ./gradlew applyPatches --stacktrace
- name: Check for updates
run: ./scripts/updateUpstream.sh
- name: Build Paperclip Jar
run: ./gradlew createMojmapPaperclipJar --stacktrace
- name: Upload Paperclip Jar
uses: actions/upload-artifact@v4
with:
name: linearpaper
path: build/libs/linearpaper-paperclip-*-mojmap.jar
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}