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