Add GitHub profile trophy repository Deployed link (#430) #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |