Skip to content

Commit acf68eb

Browse files
ci: fix release
Signed-off-by: jaapschoutenalliander <[email protected]>
1 parent a82b13f commit acf68eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- run: echo "ci started"
3030

3131
build-python:
32-
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
32+
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' && inputs.create_release }}
3333
runs-on: ubuntu-latest
3434
outputs:
3535
version: ${{ steps.version.outputs.version }}
@@ -68,7 +68,7 @@ jobs:
6868
path: dist/
6969

7070
tests:
71-
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
71+
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' && inputs.create_release }}
7272
needs: build-python
7373
strategy:
7474
matrix:

0 commit comments

Comments
 (0)