From 13fd419112d7a5cfd158ed95cead7c6adda70c7f Mon Sep 17 00:00:00 2001 From: Cheng XU Date: Thu, 12 Nov 2020 17:23:23 -0800 Subject: [PATCH] passing -eo pipefail to bash This is in line with the behavior of Github Actions. Ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell --- README.md | 2 +- full/action.yml | 2 ++ small/action.yml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4610d69..994fce6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This action is suitable to run arbitrary commands in a LaTeX environment. If you ## Inputs -* `run`: Arbitrary bash codes to be executed. +* `run`: Arbitrary bash codes to be executed. It will be executed in the form of `bash -eo pipefail -c {input}`. ## Example diff --git a/full/action.yml b/full/action.yml index d1c2222..f05f8ec 100644 --- a/full/action.yml +++ b/full/action.yml @@ -10,6 +10,8 @@ runs: image: docker://ghcr.io/xu-cheng/texlive-full:latest entrypoint: /bin/bash args: + - -eo + - pipefail - -c - ${{ inputs.run }} branding: diff --git a/small/action.yml b/small/action.yml index 55f6db8..8259444 100644 --- a/small/action.yml +++ b/small/action.yml @@ -10,6 +10,8 @@ runs: image: docker://ghcr.io/xu-cheng/texlive-small:latest entrypoint: /bin/bash args: + - -eo + - pipefail - -c - ${{ inputs.run }} branding: