mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-26 18:29:18 +00:00
Update automatic-update.yml
This commit is contained in:
12
.github/workflows/automatic-update.yml
vendored
12
.github/workflows/automatic-update.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user