From 6749ab8a7abba4a73a7b029814dd14ef31d4e12b Mon Sep 17 00:00:00 2001 From: Jamil RAICHOUNI Date: Wed, 23 Oct 2024 21:52:33 +0200 Subject: [PATCH] ci: Fix trigger for pipeline and do shallow clone --- .github/workflows/build-addon.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-addon.yml b/.github/workflows/build-addon.yml index 0b13bb8..5c66c72 100644 --- a/.github/workflows/build-addon.yml +++ b/.github/workflows/build-addon.yml @@ -3,9 +3,10 @@ name: Build addons on: - push: pull_request: + push: branches: ["main"] + tags: ["v*.*.*"] env: registry: ghcr.io/dsd-dbs/capella-addons/ @@ -25,6 +26,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 with: @@ -57,6 +60,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 with: