From 50c8da75da4e815630252200663ab42a83f84f7a Mon Sep 17 00:00:00 2001 From: Nico-AP Date: Mon, 2 Dec 2024 13:00:29 +0100 Subject: [PATCH] fix(actions): Update glob patterns to match correct branch tags. --- .github/workflows/merge-dev-to-main.yml | 2 +- .github/workflows/publish-prerelease-to-pypi.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/merge-dev-to-main.yml b/.github/workflows/merge-dev-to-main.yml index 43635b3..18042ad 100644 --- a/.github/workflows/merge-dev-to-main.yml +++ b/.github/workflows/merge-dev-to-main.yml @@ -6,7 +6,7 @@ name: Merge to Main on: push: tags: - - 'v+([0-9]).+([0-9])?(.+([0-9]))' # Matches v1.2 or v1.2.3 + - 'v*' jobs: build-test: diff --git a/.github/workflows/publish-prerelease-to-pypi.yml b/.github/workflows/publish-prerelease-to-pypi.yml index 639e3ad..477d8b9 100644 --- a/.github/workflows/publish-prerelease-to-pypi.yml +++ b/.github/workflows/publish-prerelease-to-pypi.yml @@ -5,7 +5,7 @@ name: Test and Publish Pre-Release Version of Python Package on: push: tags: - - 'v*+(a|b|rc)*' + - 'pre*' jobs: @@ -38,8 +38,8 @@ jobs: - name: Update package version in files run: | - sed -i "s/__version__/${PKG_VERSION#v}/g" setup.cfg - sed -i "s/__version__/${PKG_VERSION#v}/g" ddm/__init__.py + sed -i "s/__version__/${PKG_VERSION#pre}/g" setup.cfg + sed -i "s/__version__/${PKG_VERSION#pre}/g" ddm/__init__.py - name: Build package run: python -m build