-
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
Showing
1 changed file
with
8 additions
and
6 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,6 +1,8 @@ | ||
# GitHub Action for generating a contribution graph with a snake eating your contributions. | ||
|
||
name: Generate Snake | ||
permissions: | ||
contents: write | ||
|
||
# Controls when the action will run. This action runs every 6 hours. | ||
|
||
|
@@ -21,30 +23,30 @@ jobs: | |
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
||
# Checks repo under $GITHUB_WORKSHOP, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Generates the snake | ||
- uses: Platane/snk@master | ||
id: snake-gif | ||
with: | ||
github_user_name: Ihfaz-Alam | ||
github_user_name: mishmanners | ||
# these next 2 lines generate the files on a branch called "output". This keeps the main branch from cluttering up. | ||
gif_out_path: dist/github-contribution-grid-snake.gif | ||
svg_out_path: dist/github-contribution-grid-snake.svg | ||
|
||
# show the status of the build. Makes it easier for debugging (if there's any issues). | ||
- run: git status | ||
|
||
# Push the changes | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: master | ||
force: true | ||
|
||
- uses: crazy-max/[email protected] | ||
with: | ||
# the output branch we mentioned above | ||
|