mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-05 01:10:22 +08:00
feat(env): split checksum env into sha256.env
This commit is contained in:
44
.github/workflows/checksum.yml
vendored
Normal file
44
.github/workflows/checksum.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Calculate and Sync SHA256
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
jobs:
|
||||
checksum:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Setup Go Environment
|
||||
uses: actions/setup-go@master
|
||||
|
||||
- name: Run RVC-Models-Downloader
|
||||
run: |
|
||||
wget https://github.com/RVC-Project/RVC-Models-Downloader/releases/download/v0.2.2/rvcmd_linux_amd64.deb
|
||||
sudo apt -y install ./rvcmd_linux_amd64.deb
|
||||
rvcmd -notrs -w 1 -notui assets/all
|
||||
|
||||
- name: Calculate all Checksums
|
||||
run: go run tools/checksum/*.go
|
||||
|
||||
- name: Commit back
|
||||
if: ${{ !github.head_ref }}
|
||||
id: commitback
|
||||
continue-on-error: true
|
||||
run: |
|
||||
git config --local user.name 'github-actions[bot]'
|
||||
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git add --all
|
||||
git commit -m "chore(env): sync checksum on ${{github.ref_name}}"
|
||||
|
||||
- name: Create Pull Request
|
||||
if: steps.commitback.outcome == 'success'
|
||||
continue-on-error: true
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
delete-branch: true
|
||||
body: "Automatically sync checksum in .env"
|
||||
title: "chore(env): sync checksum on ${{github.ref_name}}"
|
||||
commit-message: "chore(env): sync checksum on ${{github.ref_name}}"
|
||||
branch: checksum-${{github.ref_name}}
|
||||
Reference in New Issue
Block a user