-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1 KB
/
ruby.yml
File metadata and controls
38 lines (35 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Generate Contributions
on:
schedule:
- cron: "55 23 * * 0"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: checkout the repo
run: |
git config --global user.name "kingreatwill"
git config --global user.email "350840291@qq.com"
git fetch --all
git checkout -b master origin/master
- name: githubchart
run: |
gem install githubchart
githubchart -u kingreatwill generated/contributions.svg
- name: Commit to the repo
run: |
git config --global user.name "kingreatwill"
git config --global user.email "350840291@qq.com"
git add .
# "echo" returns true so the build succeeds, even if no changed files
git commit -m 'Update generated files' || echo
# git push
git push -f origin master