File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # GitHub Action for generating a contribution graph with a snake eating your contributions.
3
+
4
+ name : Generate Snake
5
+
6
+ # Controls when the action will run. This action runs every 6 hours.
7
+
8
+ on :
9
+ schedule :
10
+ # every 6 hours
11
+ - cron : " 0 */6 * * *"
12
+
13
+ # This command allows us to run the Action automatically from the Actions tab.
14
+ workflow_dispatch :
15
+
16
+ # The sequence of runs in this workflow:
17
+ jobs :
18
+ # This workflow contains a single job called "build"
19
+ build :
20
+ # The type of runner that the job will run on
21
+ runs-on : ubuntu-latest
22
+
23
+ # Steps represent a sequence of tasks that will be executed as part of the job
24
+ steps :
25
+
26
+ # Checks repo under $GITHUB_WORKSHOP, so your job can access it
27
+ - uses : actions/checkout@v2
28
+
29
+ # Generates the snake
30
+ - uses : Platane/snk@master
31
+ id : snake-gif
32
+ with :
33
+ github_user_name : pand-coder
34
+ # these next 2 lines generate the files on a branch called "output". This keeps the main branch from cluttering up.
35
+ gif_out_path : dist/github-contribution-grid-snake.gif
36
+ svg_out_path : dist/github-contribution-grid-snake.svg
37
+
38
+ # show the status of the build. Makes it easier for debugging (if there's any issues).
39
+ - run : git status
40
+
41
+ # Push the changes
42
+ - name : Push changes
43
+ uses : ad-m/github-push-action@master
44
+ with :
45
+ github_token : ${{ secrets.GITHUB_TOKEN }}
46
+ branch : master
47
+ force : true
48
+
49
+ -
uses :
crazy-max/[email protected]
50
+ with :
51
+ # the output branch we mentioned above
52
+ target_branch : output
53
+ build_dir : dist
54
+ env :
55
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments