From 62e8b0fd1b1c117a86496117c7f327c831bd704d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9cate=20Kleidukos?= Date: Sun, 21 Jul 2024 22:25:58 +0200 Subject: [PATCH] Factorise the action's archive name --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index e24aec2..fd3bfd1 100644 --- a/action.yml +++ b/action.yml @@ -23,8 +23,9 @@ runs: run: | if [[ ${{ inputs.ghc }} =~ ^(9.6.6|9.8.2|9.10.1)$ ]] then - wget -q https://github.com/Kleidukos/print-api/releases/download/v${{ inputs.version }}/print-api-${{ inputs.version }}-Linux-static-${{ inputs.ghc }}-x86_64.tar.gz - tar -xzvf print-api-${{ inputs.version}}-Linux-static-x86_64.tar.gz + ARCHIVE=print-api-${{ inputs.version }}-Linux-static-${{ inputs.ghc }}-x86_64.tar.gz + wget -q https://github.com/Kleidukos/print-api/releases/download/v${{ inputs.version }}/$ARCHIVE + tar -xzvf $ARCHIVE chmod +x print-api ./print-api --package-name ${{ inputs.package-name }} > actual-interface.txt diff ${{ inputs.expected-interface }} actual-interface.txt