This commit is contained in:
student_2333 2024-11-16 22:45:08 +08:00
parent e16b7ef924
commit 77997f62ba
No known key found for this signature in database
GPG Key ID: B36E8DF853C33EE1
2 changed files with 4 additions and 4 deletions

View File

@ -5,6 +5,8 @@ on:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
permissions: write-all
jobs: jobs:
pre-commit: pre-commit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -26,8 +28,8 @@ jobs:
- name: Run pre-commit - name: Run pre-commit
run: |- run: |-
pdm run pre-commit run --all-files --show-diff-on-failure --color=always local ret=0
local ret=$? pdm run pre-commit run --all-files --show-diff-on-failure --color=always || ret=$?
# push back changes # push back changes
if [[ -n "$(git status -s)" ]]; then if [[ -n "$(git status -s)" ]]; then

View File

@ -25,7 +25,5 @@ jobs:
- name: Build and Publish distribution 📦 to PyPI - name: Build and Publish distribution 📦 to PyPI
run: |- run: |-
pdm venv create --with-pip
eval "$(pdm venv activate)"
pdm pre-install pdm pre-install
pdm pub-all-pub pdm pub-all-pub