mirror of
https://github.com/sune-org/store.git
synced 2026-01-13 16:17:58 +00:00
19 lines
655 B
YAML
19 lines
655 B
YAML
on: push
|
|
permissions:
|
|
contents: write
|
|
jobs:
|
|
c:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- run: >
|
|
printf '['>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;
|
|
git diff --quiet -- catalog.json||(
|
|
git add catalog.json;
|
|
git -c user.name=bot -c user.email=bot@users.noreply.github.com commit -m update;
|
|
git push )
|