From 9d0b1184a1aace218ed5c24684d481a14c09f485 Mon Sep 17 00:00:00 2001 From: DGun Otto Date: Fri, 15 Dec 2023 21:08:42 +0800 Subject: [PATCH] Update automatic-update.yml --- .github/workflows/automatic-update.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automatic-update.yml b/.github/workflows/automatic-update.yml index 63d7385..9036e48 100644 --- a/.github/workflows/automatic-update.yml +++ b/.github/workflows/automatic-update.yml @@ -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 \ No newline at end of file + git push