9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-27 10:49:14 +00:00

Update automatic-update.yml

This commit is contained in:
DGun Otto
2023-12-15 21:08:42 +08:00
committed by GitHub
parent f67720029b
commit 9d0b1184a1

View File

@@ -30,15 +30,23 @@ jobs:
- name: Update purpurRef in DivineMC
run: |
sed -i "s/\purpurRef=.*/purpurRef=$PAPER_REF/" DivineMC/gradle.properties
cd DivineMC
echo "Before sed:"
cat gradle.properties
sed -i "s/\purpurRef=.*/purpurRef=$PAPER_REF/" gradle.properties
echo "After sed:"
cat gradle.properties
env:
PAPER_REF: ${{ steps.purpurRef.outputs.purpurRef }}
- name: Write to repository
run: |
cd DivineMC
echo "Current directory: $(pwd)"
git status
git add gradle.properties
git status
git config user.name "HaHaWTH"
git config user.email 47356322+HaHaWTH@users.noreply.github.com
git commit -m "Updated Upstream (Purpur)"
git push
git push