Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Action build fail #35

Closed
xunfeng1980 opened this issue Jul 2, 2022 · 1 comment
Closed

Github Action build fail #35

xunfeng1980 opened this issue Jul 2, 2022 · 1 comment

Comments

@xunfeng1980
Copy link

Workflows:

name: generate animation

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

jobs:
  generate:
    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@v2
        with:
          github_user_name: ${{ github.repository_owner }}
          outputs: |
            dist/github-contribution-grid-snake.svg
            dist/github-contribution-grid-snake-dark.svg?palette=github-dark

      # 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/ghaction-github-pages@v2.6.0
        with:
          target_branch: output
          build_dir: dist
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Action log:

2022-07-02T11:52:54.5622356Z Job defined at: xunfeng1980/xunfeng1980/.github/workflows/snake.yml@refs/heads/main
2022-07-02T11:52:54.5622379Z Waiting for a runner to pick up this job...
2022-07-02T11:52:54.8570548Z Job is waiting for a hosted runner to come online.
2022-07-02T11:52:58.9342876Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-07-02T11:53:01.1930525Z Current runner version: '2.294.0'
2022-07-02T11:53:01.1955607Z ##[group]Operating System
2022-07-02T11:53:01.1956113Z Ubuntu
2022-07-02T11:53:01.1956682Z 20.04.4
2022-07-02T11:53:01.1956968Z LTS
2022-07-02T11:53:01.1957256Z ##[endgroup]
2022-07-02T11:53:01.1957586Z ##[group]Virtual Environment
2022-07-02T11:53:01.1958107Z Environment: ubuntu-20.04
2022-07-02T11:53:01.1958430Z Version: 20220626.1
2022-07-02T11:53:01.1958867Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220626.1/images/linux/Ubuntu2004-Readme.md
2022-07-02T11:53:01.1959489Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220626.1
2022-07-02T11:53:01.1960281Z ##[endgroup]
2022-07-02T11:53:01.1960587Z ##[group]Virtual Environment Provisioner
2022-07-02T11:53:01.1960889Z 1.0.0.0-main-20220616-1
2022-07-02T11:53:01.1961163Z ##[endgroup]
2022-07-02T11:53:01.1961980Z ##[group]GITHUB_TOKEN Permissions
2022-07-02T11:53:01.1962572Z Actions: write
2022-07-02T11:53:01.1963031Z Checks: write
2022-07-02T11:53:01.1963400Z Contents: write
2022-07-02T11:53:01.1963820Z Deployments: write
2022-07-02T11:53:01.1964132Z Discussions: write
2022-07-02T11:53:01.1964419Z Issues: write
2022-07-02T11:53:01.1964654Z Metadata: read
2022-07-02T11:53:01.1964974Z Packages: write
2022-07-02T11:53:01.1965273Z Pages: write
2022-07-02T11:53:01.1965518Z PullRequests: write
2022-07-02T11:53:01.1965834Z RepositoryProjects: write
2022-07-02T11:53:01.1966163Z SecurityEvents: write
2022-07-02T11:53:01.1966494Z Statuses: write
2022-07-02T11:53:01.1966754Z ##[endgroup]
2022-07-02T11:53:01.1971405Z Secret source: Actions
2022-07-02T11:53:01.1972205Z Prepare workflow directory
2022-07-02T11:53:01.2872012Z Prepare all required actions
2022-07-02T11:53:01.3066675Z Getting action download info
2022-07-02T11:53:01.5824624Z Download action repository 'Platane/snk@v2' (SHA:d078b2d231ad307c3e5efe7a3e0d630141ce54a8)
2022-07-02T11:53:02.4029924Z Download action repository 'crazy-max/ghaction-github-pages@v2.6.0' (SHA:a117e4aa1fb4854d021546d2abdfac95be568a3a)
2022-07-02T11:53:03.2905177Z ##[group]Run Platane/snk/svg-only@v2
2022-07-02T11:53:03.2905518Z with:
2022-07-02T11:53:03.2906039Z   github_user_name: xunfeng1980
2022-07-02T11:53:03.2906520Z   outputs: dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark

2022-07-02T11:53:03.2906921Z ##[endgroup]
2022-07-02T11:53:03.5628815Z 🎣 fetching github user contribution
2022-07-02T11:53:03.8860629Z ##[error]Action failed with "Cannot read properties of undefined (reading 'split')"
2022-07-02T11:53:03.9257400Z Cleaning up orphan processes```
@xunfeng1980
Copy link
Author

oh,solved.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant