Commit 18770556 authored by 赵小蒙's avatar 赵小蒙
Browse files

fix error

parent 75d0fa3d
...@@ -28,18 +28,28 @@ jobs: ...@@ -28,18 +28,28 @@ jobs:
run: | run: |
python update_version.py python update_version.py
- name: Verify version.py
run: |
ls -l magic_pdf/libs/version.py
cat magic_pdf/libs/version.py
- name: Commit changes - name: Commit changes
run: | run: |
git config --local user.email "moe@myhloli.com" git config --local user.email "moe@myhloli.com"
git config --local user.name "myhloli" git config --local user.name "myhloli"
git add magic_pdf/libs/version.py git add magic_pdf/libs/version.py
git commit -m "Update version.py with new version" if git diff-index --quiet HEAD; then
echo "No changes to commit"
else
git commit -m "Update version.py with new version"
fi
- name: Push changes - name: Push changes
if: always() # 确保始终运行此步骤
env: env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
git push git push origin main
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment