fix: restrict workflow triggers to the master branch for linting and publishing

This commit is contained in:
bohd4nx
2026-03-15 22:45:00 +02:00
parent d8f0240807
commit f4a96bb01a
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ name: Lint
on:
push:
branches: ["**"]
branches: [master]
pull_request:
branches: ["**"]
branches: [master]
jobs:
lint:
+2 -3
View File
@@ -2,9 +2,7 @@ name: Publish to PyPI
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
branches: [master]
jobs:
build:
@@ -34,6 +32,7 @@ jobs:
name: Publish
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
environment:
name: pypi
url: https://pypi.org/project/pyfragment/