Update catalog.yml

This commit is contained in:
2025-09-03 13:55:24 -07:00
committed by GitHub
parent a004d0c86f
commit ffa5a21c4f

View File

@@ -5,14 +5,14 @@ jobs:
c: c:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v4
- run: > - run: |
printf '['>catalog.json;c=; printf '['>catalog.json;c=;
for f in *;do [ -f "$f" ]||continue;[ "${f:0:1}" = . ]&&continue; for f in *;do [ -f "$f" ]||continue;[ "${f:0:1}" = . ]&&continue;
printf '%s{"name":"%s","raw":"https://raw.githubusercontent.com/%s/%s/%s"}' "$c" "$f" "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" "$f">>catalog.json; printf '%s{"name":"%s","raw":"https://raw.githubusercontent.com/%s/%s/%s"}' "$c" "$f" "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" "$f">>catalog.json;
c=,;done;printf ']' c=,;done;printf ']'>>catalog.json
>>catalog.json; git config user.name bot
git diff --quiet -- catalog.json||( git config user.email bot@users.noreply.github.com
git add catalog.json; git add catalog.json
git -c user.name=bot -c user.email=bot@users.noreply.github.com commit -m update; git commit -m update || true
git push ) git push