Environments are protection enough
This commit is contained in:
parent
2b2074c824
commit
fcf5f343c1
|
@ -16,7 +16,7 @@ jobs:
|
||||||
release-test-pypi:
|
release-test-pypi:
|
||||||
environment: release-test-pypi
|
environment: release-test-pypi
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
|
@ -47,7 +47,7 @@ jobs:
|
||||||
release-pypi:
|
release-pypi:
|
||||||
environment: release-pypi
|
environment: release-pypi
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.action == 'published' && github.repository_owner == 'python-attrs'
|
if: github.event.action == 'published'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
|
|
Loading…
Reference in New Issue