Skip to content

fix: izzisoft icon, and added Codeberg DDoS notice (#50) #14

fix: izzisoft icon, and added Codeberg DDoS notice (#50)

fix: izzisoft icon, and added Codeberg DDoS notice (#50) #14

name: '[Clients] Update CLIENTS.md'
on:
push:
branches:
- 'main'
paths:
- 'assets/clients/clients.yaml'
- 'assets/clients/CLIENTS.template.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.AWESOME_JELLYFIN_BOT_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Generate CLIENTS.md
run: |
go install github.com/awesome-jellyfin/clients-md-generator/cmd/generate@c6c44360024954a72a46617421c297aca4a2565e
generate -input assets/clients/clients.yaml -out-file assets/clients/generated-clients.md
echo "" > CLIENTS.md
while read p; do
if [[ $p == "{{ CLIENTS }}" ]]; then
cat assets/clients/generated-clients.md >> CLIENTS.md
else
echo "$p" >> CLIENTS.md
fi
done < assets/clients/CLIENTS.template.md
- name: Commit and push if there are changes
run: |
git config --local user.email "awesome-jellyfin@d2a.io"
git config --local user.name "awesome-jellyfin-bot"
git add CLIENTS.md
git commit -m "Update CLIENTS.md" --allow-empty || exit 0
git push