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:
12
.github/workflows/auto-update.yml
vendored
12
.github/workflows/auto-update.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user