mirror of
https://github.com/sune-org/store.git
synced 2026-01-13 16:17:58 +00:00
Update catalog.yml
This commit is contained in:
7
.github/workflows/catalog.yml
vendored
7
.github/workflows/catalog.yml
vendored
@@ -7,10 +7,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
printf '['>catalog.json;c=;
|
||||
echo "[" >catalog.json;c=;
|
||||
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;
|
||||
c=,;done;printf ']'>>catalog.json
|
||||
echo "$c {\"name\": \"$f\", \"raw\": \"https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_REF_NAME/$f\"}" >>catalog.json;
|
||||
c=,;done
|
||||
echo "]" >>catalog.json
|
||||
git config user.name bot
|
||||
git config user.email bot@users.noreply.github.com
|
||||
git add catalog.json
|
||||
|
||||
Reference in New Issue
Block a user