-
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (49 loc) · 1.74 KB
/
Copy pathagentskill.yml
File metadata and controls
62 lines (49 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Agentskill
on:
workflow_call:
inputs:
ref:
required: false
type: string
default: ""
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
name: Checkout Code
with:
ref: ${{ inputs.ref || github.ref }}
- name: Install Agentskill
env:
AGENTSKILL_VERSION: "2.1.0"
run: |
set -euo pipefail
target="x86_64-unknown-linux-gnu"
package="agentskill-${AGENTSKILL_VERSION}-${target}"
archive="${package}.tar.gz"
work="${RUNNER_TEMP}/agentskill"
mkdir -p "${work}/bin"
curl --fail --silent --show-error --location \
"https://github.com/airscripts/agentskill/releases/download/${AGENTSKILL_VERSION}/${archive}" \
--output "${work}/${archive}"
curl --fail --silent --show-error --location \
"https://github.com/airscripts/agentskill/releases/download/${AGENTSKILL_VERSION}/SHA256SUMS" \
--output "${work}/SHA256SUMS"
expected="$(awk -v archive="$archive" '$2 == archive { print $1 }' "${work}/SHA256SUMS")"
test -n "$expected"
printf '%s %s\n' "$expected" "${work}/${archive}" | sha256sum --check --strict
tar -xzf "${work}/${archive}" -C "$work"
install -m 0755 "${work}/${package}/agentskill" "${work}/bin/agentskill"
echo "${work}/bin" >> "$GITHUB_PATH"
- id: agentskill
uses: airscripts/agentskill/agentskill-actions/validate@2.1.0
name: Validate Agentskill Documents
with:
source: "true"
signature: auto