diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 131a7fd..e40fe70 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,48 +1,24 @@ -# This is a basic workflow to help you get started with Actions +name: GitHub-Profile-3D-Contrib -name: CI - -# Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab + schedule: # 03:00 JST == 18:00 UTC + - cron: "0 18 * * *" workflow_dispatch: -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job + name: generate-github-profile-3d-contrib steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - - name: generate-snake-game-from-github-contribution-grid - uses: Platane/snk@v2.0.0-rc.2 - with: - # github user name to read the contribution graph from (**required**) - # using action context var `github.repository_owner` or specified user - github_user_name: ${{ github.repository_owner }} - - # list of files to generate. - # one file per line. Each output can be customized with options as query string. - # - # supported options: - # - palette: A preset of color, one of [github, github-dark, github-light] - # - color_snake: Color of the snake - # - color_dots: Coma separated list of dots color. - # The first one is 0 contribution, then it goes from the low contribution to the highest. - # Exactly 5 colors are expected. - outputs: | - dist/github-snake.svg - dist/github-snake-dark.svg?palette=github-dark - dist/ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9 - + - uses: actions/checkout@v2 + - uses: yoshi389111/github-profile-3d-contrib@0.7.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + USERNAME: ${{ github.repository_owner }} + - name: Commit & Push + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add -A . + git commit -m "generated" + git push