From d497c0ed0a382c0fa8422a0e721345d91843cdd2 Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Mon, 7 Aug 2023 22:22:32 +0900 Subject: [PATCH] run scripts with the current shell --- action.yml | 6 +++--- check-installed.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 6d473be..caa2b32 100644 --- a/action.yml +++ b/action.yml @@ -41,18 +41,18 @@ runs: steps: - run: | set -euo pipefail - "$GITHUB_ACTION_PATH/install.sh" + . "$GITHUB_ACTION_PATH/install.sh" shell: bash env: REVIEWDOG_VERSION: v0.14.2 REVIEWDOG_TEMPDIR: ${{ runner.temp }} - run: | set -euo pipefail - "$GITHUB_ACTION_PATH/check-installed.sh" + . "$GITHUB_ACTION_PATH/check-installed.sh" shell: bash - run: | set -euo pipefail - "$GITHUB_ACTION_PATH/script.sh" + . "$GITHUB_ACTION_PATH/script.sh" shell: bash env: # INPUT_ is not available in Composite run steps diff --git a/check-installed.sh b/check-installed.sh index 6699e5a..fe649fc 100755 --- a/check-installed.sh +++ b/check-installed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if ! command -v reviewdog >/dev/null 2>&1; then echo "reviewdog was not installed"