github-profile-trophy-reiyu.../.github/workflows/test-repository-action.yml
Erik Donath 2ba2fe648c
Add local SVG generator script and GitHub Action for trophy SVGs (#412)
* Wrote a simple render_svg.ts file that generates the svg given an github username, theme and out path.

* render_svg.ts generates output dir if not exsists.

* Added Section to README.md that explains how to use the render_svg.ts script.

* Added an github action that utilizes the render_svg.ts script.

* Added Usage of github action to README.md

* Added simple CI Check if action runs.

* Ran: deno fmt
2026-01-27 11:55:58 +09:00

26 lines
686 B
YAML

name: Test GitHub Profile Trophy Action
on: [push, pull_request, workflow_dispatch]
jobs:
test-trophy:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v4
- name: Test Action
id: trophy
uses: ./.
with:
username: ${{ github.repository_owner }}
output_path: ./trophy.svg
token: ${{ secrets.GITHUB_TOKEN }}
- name: Verify SVG generated
run: |
if [ -f trophy.svg ]; then
echo "SVG exsists ($(wc -c < trophy.svg) Bytes)"
file trophy.svg
else
echo "SVG failed to generate"
exit 1
fi