Skip to content

Commit 7fe70cf

Browse files
author
User
committed
fix: CI sync pterm hash from registry + fix Linux headless mod
1 parent 4a88a0a commit 7fe70cf

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,13 @@ jobs:
8484
run: |
8585
REGISTRY_SHA=$(curl -sL "https://raw.githubusercontent.com/PlugFrameWork/plug/trunk/plugins/pTerm/pTerm" | sha256sum | cut -d' ' -f1)
8686
echo "Registry SHA256: $REGISTRY_SHA"
87-
echo "$REGISTRY_SHA" > plug.app/rt/pterm_hash.txt
88-
git config user.name "github-actions"
89-
git config user.email "actions@github.com"
90-
git add plug.app/rt/pterm_hash.txt
91-
git commit -m "chore: sync pterm hash from registry" || true
92-
git push origin HEAD:${{ github.ref }} || true
87+
LOCAL_SHA=$(cat plug.app/rt/pterm_hash.txt | tr -d '[:space:]')
88+
echo "Local SHA256: $LOCAL_SHA"
89+
if [ "$REGISTRY_SHA" != "$LOCAL_SHA" ]; then
90+
echo "ERROR: pterm_hash.txt does not match registry!"
91+
echo "Please update plug.app/rt/pterm_hash.txt with: $REGISTRY_SHA"
92+
exit 1
93+
fi
9394
9495
- name: Run CMake Configuration
9596
shell: bash
@@ -144,12 +145,13 @@ jobs:
144145
run: |
145146
REGISTRY_SHA=$(curl -sL "https://raw.githubusercontent.com/PlugFrameWork/plug/trunk/plugins/pTerm/pTerm" | sha256sum | cut -d' ' -f1)
146147
echo "Registry SHA256: $REGISTRY_SHA"
147-
echo "$REGISTRY_SHA" > plug.app/rt/pterm_hash.txt
148-
git config user.name "github-actions"
149-
git config user.email "actions@github.com"
150-
git add plug.app/rt/pterm_hash.txt
151-
git commit -m "chore: sync pterm hash from registry" || true
152-
git push origin HEAD:${{ github.ref }} || true
148+
LOCAL_SHA=$(cat plug.app/rt/pterm_hash.txt | tr -d '[:space:]')
149+
echo "Local SHA256: $LOCAL_SHA"
150+
if [ "$REGISTRY_SHA" != "$LOCAL_SHA" ]; then
151+
echo "ERROR: pterm_hash.txt does not match registry!"
152+
echo "Please update plug.app/rt/pterm_hash.txt with: $REGISTRY_SHA"
153+
exit 1
154+
fi
153155
154156
- name: Run CMake Configuration
155157
run: |

plug.app/rt/pterm_hash.txt

-70 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)