mirror of
https://gitcode.com/gh_mirrors/gh/gh-action-pypi-publish.git
synced 2026-07-02 10:25:13 +00:00
Fail-fast in unsupported environments
https://github.com/pypa/gh-action-pypi-publish/pull/230#discussion_r1632406604 Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
This commit is contained in:
@@ -93,6 +93,12 @@ branding:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fail-fast in unsupported environments
|
||||||
|
if: runner.os != 'Linux'
|
||||||
|
run: |
|
||||||
|
>&2 echo This action is only able to run under GNU/Linux environments
|
||||||
|
exit 1
|
||||||
|
shell: bash -eEuo pipefail {0}
|
||||||
- name: Reset path if needed
|
- name: Reset path if needed
|
||||||
run: |
|
run: |
|
||||||
# Reset path if needed
|
# Reset path if needed
|
||||||
|
|||||||
Reference in New Issue
Block a user