Skip to content

Commit

Permalink
fix(actions): Update glob patterns to match correct branch tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-AP committed Dec 2, 2024
1 parent dd1b0b9 commit 50c8da7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/merge-dev-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-prerelease-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Test and Publish Pre-Release Version of Python Package
on:
push:
tags:
- 'v*+(a|b|rc)*'
- 'pre*'

jobs:

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 50c8da7

Please sign in to comment.