@@ -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 : |
0 commit comments