From c9ce5acf2698b4ab08834a1cfe0f14952f6b8ae8 Mon Sep 17 00:00:00 2001 From: Yaochen Ling <4closetool3@gmail.com> Date: Thu, 9 Mar 2023 15:45:56 +0800 Subject: [PATCH] fix(image.yaml): not check change when releasing --- .github/workflows/image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 7042e971..f585eefe 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -19,6 +19,7 @@ jobs: with: fetch-depth: 20 - uses: dorny/paths-filter@v2 + if: ${{ !startsWith(github.ref_name, 'v') }} id: changes with: filters: | @@ -50,7 +51,7 @@ jobs: - name: Condition id: condition run: | - echo "run=${{ (steps.changes.outputs.go == 'true' && (matrix.components == 'core' || matrix.components == 'job')) || (steps.changes.outputs.api == 'true' && matrix.components == 'swagger') }}" >> $GITHUB_OUTPUT + echo "run=${{ startsWith(github.ref_name, 'v') || ((steps.changes.outputs.go == 'true' && (matrix.components == 'core' || matrix.components == 'job')) || (steps.changes.outputs.api == 'true' && matrix.components == 'swagger')) }}" >> $GITHUB_OUTPUT - name: Set up QEMU if: ${{ matrix.platforms != 'linux/amd64' && steps.condition.outputs.run == 'true' }}