Upstream #332
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |