mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-01-20 19:10:22 +00:00
feat: optimize actions
This commit is contained in:
19
.github/workflows/push_format.yml
vendored
19
.github/workflows/push_format.yml
vendored
@@ -12,14 +12,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
push_format:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10"]
|
||||
os: [ubuntu-latest]
|
||||
fail-fast: false
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -44,7 +37,7 @@ jobs:
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add --all
|
||||
git commit -m "Format code"
|
||||
git commit -m "chore(format): run black"
|
||||
|
||||
- name: Create Pull Request
|
||||
if: steps.commitback.outcome == 'success'
|
||||
@@ -52,6 +45,8 @@ jobs:
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
delete-branch: true
|
||||
body: Apply Code Formatter Change
|
||||
title: Apply Code Formatter Change
|
||||
commit-message: Automatic code format
|
||||
body: "Automatically apply code formatter change"
|
||||
title: "chore(format): run black"
|
||||
commit-message: "chore(format): run black"
|
||||
branch: formatter-${{github.ref_name}}
|
||||
branch-suffix: short-commit-hash
|
||||
|
||||
Reference in New Issue
Block a user