Skip to content

Commit 62e8b0f

Browse files
committed
Factorise the action's archive name
1 parent 13515c0 commit 62e8b0f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ runs:
2323
run: |
2424
if [[ ${{ inputs.ghc }} =~ ^(9.6.6|9.8.2|9.10.1)$ ]]
2525
then
26-
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
27-
tar -xzvf print-api-${{ inputs.version}}-Linux-static-x86_64.tar.gz
26+
ARCHIVE=print-api-${{ inputs.version }}-Linux-static-${{ inputs.ghc }}-x86_64.tar.gz
27+
wget -q https://github.com/Kleidukos/print-api/releases/download/v${{ inputs.version }}/$ARCHIVE
28+
tar -xzvf $ARCHIVE
2829
chmod +x print-api
2930
./print-api --package-name ${{ inputs.package-name }} > actual-interface.txt
3031
diff ${{ inputs.expected-interface }} actual-interface.txt

0 commit comments

Comments
 (0)