From ed7e680fa7048486ad965bf2b3ef5447b0b38527 Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Sun, 23 Feb 2025 18:59:59 -0300 Subject: [PATCH] Only include the short ref --- .github/workflows/auto-update.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 03049d4..f725881 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -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 \ No newline at end of file