From bacb62682c754871d3471af8890de22d03b01199 Mon Sep 17 00:00:00 2001 From: Brendon Smith Date: Tue, 11 Jun 2024 12:53:35 -0400 Subject: [PATCH] Fail-fast in unsupported environments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/pypa/gh-action-pypi-publish/pull/230#discussion_r1632406604 Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 7320b86..508d4c6 100644 --- a/action.yml +++ b/action.yml @@ -93,6 +93,12 @@ branding: runs: using: composite 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 run: | # Reset path if needed