Initial setup of gitea actions
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
name: Setup Sectool
|
||||
description: Download and install the sectool binary from GitHub releases
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Download sectool binary
|
||||
shell: bash
|
||||
run: |
|
||||
LATEST=$(curl -s https://api.github.com/repos/a13labs/sectool/releases/latest)
|
||||
ASSET_URL=$(echo "$LATEST" | jq -r '.assets[] | select(.name | test("linux.*x64")) | .browser_download_url')
|
||||
curl -sL "$ASSET_URL" -o /tmp/sectool.zip
|
||||
unzip -o /tmp/sectool.zip -d /usr/local/bin
|
||||
rm /tmp/sectool.zip
|
||||
chmod +x /usr/local/bin/sectool
|
||||
sectool version
|
||||
Reference in New Issue
Block a user