diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 2143d2d..9c50f7e 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -11,7 +11,10 @@ on: required: false IS_USE_LATEST_TAG: description: '是否使用"latest"标签' - required: false + default: true + type: boolean + IS_APP_VERSION_CHANGE: + description: '是否覆盖版本标签' default: true type: boolean @@ -34,7 +37,7 @@ jobs: - name: Check Version Change run: | - if git diff --name-only ${{ github.sha }} | grep 'version.py'; then + if git diff --name-only ${{ github.sha }} | grep 'app/version.py'; then echo "IS_APP_VERSION_CHANGE=true" >> $GITHUB_ENV echo "IS_USE_LATEST_TAG=true" >> $GITHUB_ENV fi