Skip to content

Commit

Permalink
在保存的文件名上添加模型名称
Browse files Browse the repository at this point in the history
Close #14
  • Loading branch information
TransparentLC committed Jan 10, 2023
1 parent 1d6d92c commit ddeb642
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x
check-latest: true
cache: pip
cache-dependency-path: requirements.txt
- name: Install pip dependencies
Expand Down Expand Up @@ -93,8 +94,8 @@ jobs:
REAL_ESRGAN_PLATFORM=
BUILD_TIME=$(date +%Y%m%d-%H%I%S)
echo "::set-output name=release_name::Automated build ${BUILD_TIME}"
echo "::set-output name=tag_name::autobuild-${BUILD_TIME}"
echo "release_name=Automated build ${BUILD_TIME}" >> $GITHUB_OUTPUT
echo "tag_name=autobuild-${BUILD_TIME}" >> $GITHUB_OUTPUT
mkdir release
Expand Down Expand Up @@ -161,7 +162,7 @@ jobs:
RELEASE_FILES="${RELEASE_FILES//'%'/'%25'}"
RELEASE_FILES="${RELEASE_FILES//$'\n'/'%0A'}"
RELEASE_FILES="${RELEASE_FILES//$'\r'/'%0D'}"
echo "::set-output name=release_files::${RELEASE_FILES}"
echo "release_files=${RELEASE_FILES}" >> $GITHUB_OUTPUT
- name: Release automated build
uses: softprops/action-gh-release@v1
if: ${{ github.event.inputs.release }}
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def getOutputPath(self, p: str) -> str:
suffix = f'w{self.varintResizeWidth.get()}'
case param.ResizeMode.HEIGHT:
suffix = f'h{self.varintResizeHeight.get()}'
return f'{base}-{suffix}{ext}'
return f'{base} ({self.models[self.comboModel.current()]} {suffix}){ext}'

if __name__ == '__main__':
os.chdir(define.APP_PATH)
Expand Down

0 comments on commit ddeb642

Please sign in to comment.