my ✨ github repo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Modify snake.yml for output file changes and debug

Updated snake generation workflow to change output files and added debugging step.

authored by

Jasper Mayone and committed by
GitHub
3e9968ae 02523699

+22 -12
+22 -12
.github/workflows/snake.yml
··· 3 3 4 4 on: 5 5 schedule: 6 - - cron: "15 */12 * * *" # run at minute 15, every 12 hours (UTC) 6 + - cron: "15 */12 * * *" # minute 15, every 12 hours (UTC) 7 7 workflow_dispatch: 8 8 9 9 permissions: ··· 13 13 build: 14 14 runs-on: ubuntu-latest 15 15 steps: 16 - - name: Checkout 16 + - name: Checkout main 17 17 uses: actions/checkout@v4 18 18 with: 19 19 fetch-depth: 0 20 + ref: main 20 21 21 22 - name: Generate snake files 22 23 uses: Platane/snk@v3 23 24 with: 24 25 github_user_name: ${{ github.repository_owner }} 25 26 outputs: | 26 - dist/github-contribution-grid-snake.svg 27 - dist/github-contribution-grid-snake-dark.svg?palette=github-dark 28 - dist/github-contribution-grid-snake.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9 27 + dist/github-snake.svg 28 + dist/github-snake-dark.svg?palette=github-dark 29 + dist/ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9 29 30 env: 30 31 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 32 33 + - name: List dist contents (debug) 34 + run: ls -la dist 35 + 32 36 - name: Stage assets to tracked folder 33 37 run: | 34 38 mkdir -p assets/snake 35 - cp -f dist/github-contribution-grid-snake.svg assets/snake/github-contribution-grid-snake.svg 36 - cp -f dist/github-contribution-grid-snake-dark.svg assets/snake/github-contribution-grid-snake-dark.svg 37 - cp -f dist/github-contribution-grid-snake.gif assets/snake/github-contribution-grid-snake.gif 39 + cp -f dist/github-snake.svg assets/snake/github-snake.svg 40 + cp -f dist/github-snake-dark.svg assets/snake/github-snake-dark.svg 41 + cp -f dist/ocean.gif assets/snake/ocean.gif 38 42 39 - - name: Set timestamp 43 + - name: Set timestamp (ISO-8601 UTC) 40 44 id: ts 41 45 run: echo "iso=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT" 42 46 47 + - name: Sync local main with origin/main (merge to avoid non-fast-forward) 48 + run: | 49 + git config user.name "jasperbot 🤖" 50 + git config user.email "robot+github@jaspermayone.com" 51 + git pull --no-rebase origin main 52 + 43 53 - name: Commit only changed snake assets 44 54 uses: stefanzweifel/git-auto-commit-action@v4 45 55 with: 46 56 commit_message: "chore(snake): update animations at ${{ steps.ts.outputs.iso }}" 47 57 branch: main 48 58 file_pattern: | 49 - assets/snake/github-contribution-grid-snake.svg 50 - assets/snake/github-contribution-grid-snake-dark.svg 51 - assets/snake/github-contribution-grid-snake.gif 59 + assets/snake/github-snake.svg 60 + assets/snake/github-snake-dark.svg 61 + assets/snake/ocean.gif 52 62 commit_user_name: jasperbot 🤖 53 63 commit_user_email: robot+github@jaspermayone.com 54 64 commit_author: jasperbot 🤖 <robot+github@jaspermayone.com>