From 782b813529d19862b01131538714b96be3575b40 Mon Sep 17 00:00:00 2001 From: zhifenglee-aelf Date: Fri, 7 Jun 2024 12:01:30 +0800 Subject: [PATCH] feat(cicd): added condition --- .github/workflows/publish-templates-prod.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-templates-prod.yml b/.github/workflows/publish-templates-prod.yml index d87c9a1..1155f61 100644 --- a/.github/workflows/publish-templates-prod.yml +++ b/.github/workflows/publish-templates-prod.yml @@ -2,12 +2,11 @@ on: push: tags: - 'templates-v*' - branches: - - master jobs: publish: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' env: WORKING_DIRECTORY: templates environment: prod