9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-26 02:19:33 +00:00

Only include the short ref

This commit is contained in:
MrPowerGamerBR
2025-02-23 18:59:59 -03:00
parent 49b4786496
commit ed7e680fa7

View File

@@ -29,6 +29,14 @@ jobs:
cd Paper
echo "::set-output name=paperRef::$(git rev-parse HEAD)"
cd ..
- name: Get Paper Latest Commit Hash (short)
id: paperShortRef
run: |
ls
cd Paper
echo "::set-output name=paperShortRef::$(git rev-parse --short HEAD)"
cd ..
- name: Update paperRef in SparklyPaper
run: |
@@ -38,11 +46,11 @@ jobs:
- name: Write to repository
env:
PAPER_REF: ${{ steps.paperRef.outputs.paperRef }}
PAPER_SHORT_REF: ${{ steps.paperShortRef.outputs.paperShortRef }}
run: |
cd SparklyPaper
git add gradle.properties
git config user.name "Loritta Morenitta"
git config user.email 47356322+LorittaMorenitta@users.noreply.github.com
git commit -m "Updated Upstream (Paper / $PAPER_REF)"
git commit -m "Updated Upstream (Paper / $PAPER_SHORT_REF)"
git push