Environments are protection enough
This commit is contained in:
parent
2b2074c824
commit
fcf5f343c1
|
@ -16,7 +16,7 @@ jobs:
|
|||
release-test-pypi:
|
||||
environment: release-test-pypi
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository_owner == 'python-attrs'
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
|
@ -47,7 +47,7 @@ jobs:
|
|||
release-pypi:
|
||||
environment: release-pypi
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.action == 'published' && github.repository_owner == 'python-attrs'
|
||||
if: github.event.action == 'published'
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
|
|
Loading…
Reference in New Issue