Skip to content

Commit

Permalink
Factorise the action's archive name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Jul 21, 2024
1 parent 13515c0 commit 62e8b0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62e8b0f

Please sign in to comment.