Environments are protection enough

This commit is contained in:
Hynek Schlawack 2022-12-19 14:57:10 +01:00
parent 2b2074c824
commit fcf5f343c1
No known key found for this signature in database
GPG Key ID: AE2536227F69F181
1 changed files with 2 additions and 2 deletions

View File

@ -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