fix: NOP is not 9 if minor version >= 13

This commit is contained in:
2025-12-17 23:49:38 +08:00
parent 3c104c02ac
commit 87b1c7a86e
3 changed files with 7 additions and 7 deletions

View File

@@ -39,18 +39,18 @@ jobs:
lfs: true
submodules: true
- name: Run shot.py
- name: Run shot.py and check for changes
working-directory: ./regtest
run: |
touch ./regtest/.git/.no1shot
find . -type f -name '*\.1shot\.*' -exec rm -f {} + >/dev/null 2>&1
touch ./.git/.no1shot
pip install pycryptodome
python3 ./project/oneshot/shot.py ./regtest --no-banner >/dev/null 2>&1
cd ./regtest
python3 ../project/oneshot/shot.py . --no-banner >/dev/null 2>&1
if [ -n "$(git status --porcelain)" ]; then
cd ../project
COMMIT_MSG=$(git log -1 --pretty=%B | head -n 1)
echo "$COMMIT_MSG" | grep -q "update tests" || { echo "Workspace changed but commit message does not contain 'update tests'. Failing workflow."; exit 1; }
fi
cd ..
- name: Commit and push changes
if: ${{