From a1e13c919a1e1bca1811cae3c732dfafe06840d8 Mon Sep 17 00:00:00 2001 From: Octavian Ionescu Date: Thu, 9 Oct 2025 10:47:52 +0300 Subject: [PATCH 1/2] ensure publish jobs pick up the correct tag --- .github/workflows/cicd.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b52512c6..687db7e9 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -81,7 +81,14 @@ jobs: name: staging url: https://test.pypi.org/project/ftrack-python-api/ steps: - - uses: actions/checkout@v1 + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Checkout workflow-triggering tag + run: | + git fetch --tags + git checkout "${GITHUB_REF_NAME}" - name: Set up Python uses: actions/setup-python@v4 with: @@ -106,7 +113,14 @@ jobs: name: production url: https://pypi.org/project/ftrack-python-api/ steps: - - uses: actions/checkout@v1 + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Checkout workflow-triggering tag + run: | + git fetch --tags + git checkout "${GITHUB_REF_NAME}" - name: Set up Python uses: actions/setup-python@v4 with: From b4a7cc6a1b8de1fa2381b05a2775e53f123d782d Mon Sep 17 00:00:00 2001 From: Octavian Ionescu Date: Mon, 13 Oct 2025 08:41:03 +0200 Subject: [PATCH 2/2] removed redundant tag-fetching --- .github/workflows/cicd.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 687db7e9..2248e20e 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -87,7 +87,6 @@ jobs: fetch-depth: 0 - name: Checkout workflow-triggering tag run: | - git fetch --tags git checkout "${GITHUB_REF_NAME}" - name: Set up Python uses: actions/setup-python@v4 @@ -119,7 +118,6 @@ jobs: fetch-depth: 0 - name: Checkout workflow-triggering tag run: | - git fetch --tags git checkout "${GITHUB_REF_NAME}" - name: Set up Python uses: actions/setup-python@v4