Skip to content

Commit

Permalink
add games to SERVICES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Mar 19, 2024
1 parent e07b283 commit 4f602b4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/update-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ jobs:
echo "" >> ./SERVICES.md
echo -e "$services" >> ./SERVICES.md
games=""
for file in ./services-available/games*.yml; do
service_name=$(basename "$file" .yml)
service_link=$(sed -n '/^# \+https/p' "$file" | sed 's/^#\s*//g' | head -n 1)
description=$(sed -n 's/^# \+description: //p' "$file" | head -n 1)
if [ -n "$service_link" ]; then
games="$games\n- [$service_name]($service_link): $description"
else
games="$games\n- $service_name: $description"
fi
done
echo "" >> ./SERVICES.md
echo "# Available Games" >> ./SERVICES.md
echo "" >> ./SERVICES.md
echo -e "$games" >> ./SERVICES.md
- name: Commit Services Markdown
#if: steps.changes.outputs.changed == 'true'
run: |
Expand Down

0 comments on commit 4f602b4

Please sign in to comment.