From d3cb1fec792f5e80d773027136c9cb087f21b974 Mon Sep 17 00:00:00 2001 From: Petr Hracek Date: Tue, 5 Apr 2022 16:41:15 +0200 Subject: [PATCH] Fix shell substitution (#13) Signed-off-by: Petr "Stone" Hracek --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index fcae9af..f5d1271 100644 --- a/action.yml +++ b/action.yml @@ -86,7 +86,8 @@ runs: if [ ${{ inputs.dockerfile }} == Dockerfile ]; then suffix='centos7' else - suffix=${inputs.dockerfile##*.} + df="${{ inputs.dockerfile }}" + suffix=${df##*.} fi echo "::set-output name=suffix::$suffix"