From 67d7e1d051bf10c4e3ac58c65b5efbb792efd2fd Mon Sep 17 00:00:00 2001 From: herryyun <3209851541@qq.com> Date: Thu, 11 Sep 2025 11:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/build-ima?= =?UTF-8?q?ge.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-image.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index cc66791..25c677a 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -23,22 +23,22 @@ jobs: runs-on: self_website steps: - - name: Checkout repository - uses: herryyun/checkout@v4 - with: - token: ${{ secrets.TOKEN }} - - name: Set Gradle version - id: gradle - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - GRADLE_VERSION="${{ github.event.inputs.gradle_version }}" - else + - name: Checkout repository + uses: herryyun/checkout@v4 + with: + token: ${{ secrets.TOKEN }} + - name: Set Gradle version + id: gradle + run: | + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + GRADLE_VERSION="${{ github.event.inputs.gradle_version }}" + else # 推送触发时使用默认版本 - GRADLE_VERSION="8.5" - fi + GRADLE_VERSION="8.5" + fi - echo "version=${GRADLE_VERSION}" >> $GITHUB_OUTPUT - echo "📦 使用Gradle版本: ${GRADLE_VERSION}" + echo "version=${GRADLE_VERSION}" >> $GITHUB_OUTPUT + echo "📦 使用Gradle版本: ${GRADLE_VERSION}" - name: Login to Gitea Container Registry uses: docker/login-action@v3