-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: count packages * ci: set the permissions
- Loading branch information
1 parent
1c1d857
commit 1730f0f
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Count packages | ||
on: | ||
workflow_call: {} | ||
schedule: | ||
- cron: "0 0 * * *" # daily | ||
jobs: | ||
count-packages: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: asdf-vm/actions/setup@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3.0.2 | ||
- 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: gh issue comment "$NUMBER" --body "$BODY" | ||
env: | ||
NUMBER: "19792" | ||
BODY: | | ||
asdf: ${{steps.asdf.outputs.count}} | ||
aqua: ${{steps.aqua.outputs.count}} | ||
GITHUB_TOKEN: ${{github.token}} |