Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
18770556
Commit
18770556
authored
Jun 04, 2024
by
赵小蒙
Browse files
fix error
parent
75d0fa3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
.github/workflows/python-package.yml
.github/workflows/python-package.yml
+13
-3
No files found.
.github/workflows/python-package.yml
View file @
18770556
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment