Skip to content

Commit

Permalink
Update to use GitHub CLI for downloading
Browse files Browse the repository at this point in the history
Helps the default be the latest version always
  • Loading branch information
AGraber committed Feb 5, 2023
1 parent c1a6e14 commit 4d89edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ inputs:
version:
description: 'Version of sampctl'
required: true
default: '1.9.1'
default: '' # latest
runs:
using: "composite"
steps:
- run: wget https://github.com/Southclaws/sampctl/releases/download/${{ inputs.version }}/sampctl_${{ inputs.version }}_linux_amd64.tar.gz -O sampctl.tar.gz
- run: gh release download -R Southclaws/sampctl ${{ inputs.version }} --pattern '*linux_amd64.tar.gz' -O sampctl.tar.gz
shell: bash
- run: sudo tar -zxf sampctl.tar.gz --directory /usr/bin sampctl
shell: bash
Expand Down

0 comments on commit 4d89edd

Please sign in to comment.