-
-
Notifications
You must be signed in to change notification settings - Fork 113
39 lines (39 loc) · 1.2 KB
/
count-pkgs.yaml
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
---
name: Count packages
on:
workflow_dispatch: {}
schedule:
- cron: "0 0 * * *" # daily
jobs:
count-packages:
runs-on: ubuntu-latest
permissions:
issues: write
timeout-minutes: 15
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: asdf-vm/actions/setup@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3.0.2
- uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd # v2.0.6
- run: |
set -euo pipefail
n=$(find pkgs -name registry.yaml | wc -l)
echo "count=$n" >> "$GITHUB_OUTPUT"
id: aqua
- run: |
set -euo pipefail
n=$(asdf plugin list all | wc -l)
echo "count=$n" >> "$GITHUB_OUTPUT"
id: asdf
- run: |
set -euo pipefail
n=$(mise p ls-remote --only-names | wc -l)
echo "count=$n" >> "$GITHUB_OUTPUT"
id: mise
- run: gh issue comment "$NUMBER" --body "$BODY"
env:
NUMBER: "19792"
BODY: |
mise: ${{steps.mise.outputs.count}}
asdf: ${{steps.asdf.outputs.count}}
aqua: ${{steps.aqua.outputs.count}}
GITHUB_TOKEN: ${{github.token}}