Skip to content

Commit 3f502e0

Browse files
committed
Run GH actions for creating changelog and publish to pypi only for tags and on main branch
1 parent 393f85b commit 3f502e0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/create-release-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
release:
8-
if: startsWith(github.ref, 'refs/tags/')
8+
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/main' }}
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Build Changelog

.github/workflows/python-publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ on:
99

1010
jobs:
1111
deploy:
12-
12+
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/main' }}
1313
runs-on: ubuntu-latest
14-
1514
steps:
1615
- uses: actions/checkout@v2
1716
- name: Set up Python

0 commit comments

Comments
 (0)