-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06148bb
commit 7b3cdfa
Showing
1 changed file
with
16 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
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/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
USERNAME: ${{ github.repository_owner }} | ||
- name: Commit & Push | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A . | ||
git commit -m "generated" | ||
git push |