From d8fa4a76858c4fa5e795a5ae732f9b4915f9d3b0 Mon Sep 17 00:00:00 2001 From: Damon To Date: Tue, 7 May 2024 17:03:05 +0800 Subject: [PATCH] chore(ci): condition doesn't work --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 08e1c7a..18e5df9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ jobs: prepare-matrix: name: Prepare Matrix runs-on: ubuntu-latest - if: github.event_name == 'push' && contains(github.event.ref, '/tags/') + if: ${{ startsWith(github.ref, 'refs/tags/v') }} outputs: servers: ${{ steps.create-matrix.outputs.matrix }} steps: