Skip to content

Commit 1c2f344

Browse files
committed
Only run sync on tags
1 parent b3a1351 commit 1c2f344

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/DiploiBuild.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ env:
1313
INITIAL_PROJECT_IMAGE_NAME: ${{ github.repository }}-initial-project
1414
DEMO_TARGET_REPOSITORY: 'https://x-access-token:${{ secrets.DEMO_REPOSITORY_PAT }}@github.com/${{ github.repository }}-demo.git'
1515
DEMO_TAG_NAME: '${GITHUB_REF#refs/tags/}'
16-
16+
TAG_NAME: '${GITHUB_REF#refs/tags/}'
17+
1718
jobs:
1819

1920
DemoSync:
2021
runs-on: ubuntu-latest
22+
if: startsWith(github.ref, 'refs/tags/v')
2123
steps:
2224
- name: Checkout source repository
2325
uses: actions/checkout@v2

0 commit comments

Comments
 (0)