Git Product home page Git Product logo

Comments (3)

stepbystepcode avatar stepbystepcode commented on July 19, 2024 2

I've experienced the same issue recently, and I've found a solution that may help you. Based on what I discovered in this issue #85, it seems that the problem is related to the version of the workflow.

Up until now, I had been using version 2 (V2) of the workflow successfully. However, switching to version 3 (V3) resolved the issue, and the workflow started functioning correctly.

I hope this information proves helpful, and you can resolve the issue by transitioning to version 3 of the workflow! I greatly appreciate this project from @Platane

Greetings!

Thanks, bro! It solved my problem!
This workflow works:

name: generate animation

on:
  # run automatically every 24 hours
  schedule:
    - cron: "0 */24 * * *" 
  
  # allows to manually run the job at any time
  workflow_dispatch:
  
  # run on every push on the master branch
  push:
    branches:
    - main
    
  

jobs:
  generate:
    permissions: 
      contents: write
    runs-on: ubuntu-latest
    timeout-minutes: 10
    
    steps:
      # generates a snake game from a github user (<github_user_name>) contributions graph, output a svg animation at <svg_out_path>
      - name: generate github-contribution-grid-snake.svg
        uses: Platane/snk/svg-only@v3
        with:
          github_user_name: ${{ github.repository_owner }}
          outputs: |
            dist/github-contribution-grid-snake.svg
            dist/github-contribution-grid-snake-dark.svg?palette=github-dark
        env:
          GITHUB_TOKEN: ${{ secrets.TOKEN }}

      # push the content of <build_dir> to a branch
      # the content will be available at https://raw.githubusercontent.com/<github_user>/<repository>/<target_branch>/<file> , or as github page
      - name: push github-contribution-grid-snake.svg to the output branch
        uses: crazy-max/[email protected]
        with:
          target_branch: output
          build_dir: dist
        env:
          GITHUB_TOKEN: ${{ secrets.TOKEN }}

from snk.

JairTorres1003 avatar JairTorres1003 commented on July 19, 2024 1

I've experienced the same issue recently, and I've found a solution that may help you. Based on what I discovered in this issue #85, it seems that the problem is related to the version of the workflow.

Up until now, I had been using version 2 (V2) of the workflow successfully. However, switching to version 3 (V3) resolved the issue, and the workflow started functioning correctly.

I hope this information proves helpful, and you can resolve the issue by transitioning to version 3 of the workflow! I greatly appreciate this project from @Platane

Greetings!

from snk.

Lvjinhong avatar Lvjinhong commented on July 19, 2024

I've encountered the same issue. Could you please provide further guidance on how to proceed

from snk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.