mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-25 09:59:15 +00:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@9f004614 Update a whole lot of deprecated annotations PaperMC/Paper@72f13f8b [ci/skip] Mention API Checks for CONTRIBUTING.md (#12315) PaperMC/Paper@7cc6cb50 Check for trailing input in ItemFactory#createItemStack (#12312) PaperMC/Paper@f49d18df Add get/set customName to Skull block (#12302) PaperMC/Paper@894631f0 Make advancement ordering predictable (#12292) PaperMC/Paper@2aad131e Add config option for command spam whitelist PaperMC/Paper@bb3b7e69 Fix annotation mistakes PaperMC/Paper@058455e4 InventoryView QOL open method (#12282) PaperMC/Paper@f2258582 Fix firework entity not being removed when FireworkExplodeEvent is cancelled (#12268) PaperMC/Paper@7819df10 Add getHeight method to ChunkData (#12311) PaperMC/Paper@37b9ca1f Add flush parameter to World#save (#12330) PaperMC/Paper@515e12ca Check if BUNDLE_CONTENTS is present in InventoryClickEvent (#12321) PaperMC/Paper@5a6ab97b Add config to remove player as vehicle restriction in /ride (#12327) PaperMC/Paper@c467df95 Add ItemStack#copyDataFrom (#12224) Gale Changes: Dreeam-qwq/Gale@d5143ee0 Updated Upstream (Paper) Dreeam-qwq/Gale@63c396e7 Updated Upstream (Paper) Dreeam-qwq/Gale@5c2147b4 Updated Upstream (Paper) Dreeam-qwq/Gale@804ecea0 Rebuild patches
82 lines
2.3 KiB
YAML
82 lines
2.3 KiB
YAML
name: Automatically update Gale commit hash
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 1 * * *"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Leaf repository
|
|
uses: actions/checkout@main
|
|
with:
|
|
path: 'Leaf'
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Checkout Gale repository
|
|
uses: actions/checkout@main
|
|
with:
|
|
path: 'Gale'
|
|
repository: "Dreeam-qwq/Gale"
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Get Gale latest commit Hash
|
|
id: galeCommit
|
|
run: |
|
|
cd Gale
|
|
echo "galeCommit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Get Leaf Current Gale commit Hash
|
|
id: currGaleRef
|
|
run: |
|
|
cd Leaf
|
|
currGaleRef=$(grep "^galeCommit\s*=" gradle.properties | sed 's/^galeCommit\s*=\s*//')
|
|
echo "currGaleRef=$currGaleRef" >> $GITHUB_OUTPUT
|
|
|
|
- name: Update galeCommit in Leaf
|
|
run: |
|
|
cd Leaf
|
|
sed -i "s/\(galeCommit\s*=\s*\).*/\1$PAPER_REF/" gradle.properties
|
|
env:
|
|
PAPER_REF: ${{ steps.galeCommit.outputs.galeCommit }}
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: |
|
|
cd Leaf
|
|
git config --global user.name "Dreeam-qwq"
|
|
git config --global user.email 61569423+Dreeam-qwq@users.noreply.github.com
|
|
chmod +x gradlew
|
|
|
|
- uses: actions/setup-java@main
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '21'
|
|
|
|
- name: Running tests before push
|
|
run: |
|
|
cd Leaf
|
|
if ! git diff --quiet; then
|
|
echo "Running tests...."
|
|
./gradlew applyAllPatches
|
|
./gradlew build -x test
|
|
./gradlew rebuildGalePatches
|
|
./gradlew rebuildAllServerPatches
|
|
fi
|
|
|
|
- name: Check for changes and write to repository
|
|
run: |
|
|
cd Leaf
|
|
if ! git diff --quiet; then
|
|
echo "Writing to repo....."
|
|
git add .
|
|
chmod +x ./scripts/upstreamCommit.sh
|
|
./scripts/upstreamCommit.sh --gale $CURR_GALE_REF
|
|
git push
|
|
else
|
|
echo "No changes to commit."
|
|
fi
|
|
env:
|
|
CURR_GALE_REF: ${{ steps.currGaleRef.outputs.currGaleRef }}
|