Skip to content

Commit ce72bc7

Browse files
committed
update
1 parent 5bf1f79 commit ce72bc7

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

git workflow/svg.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: GitHub-Profile-3D-Contrib
2+
on:
3+
# Schedule updates (each day 24 点 00 分自动执行一次)
4+
# corn 参考
5+
# https://img2020.cnblogs.com/blog/740516/202012/740516-20201203230232201-913405527.png
6+
# https://www.cnblogs.com/xgqfrms/p/14079442.html
7+
schedule: [{cron: "59 23 * * *"}]
8+
# Lines below let you run workflow manually and on each commit
9+
workflow_dispatch:
10+
push: {branches: ["master"]}
11+
12+
# https://docs.github.com/en/actions/learn-github-actions/contexts
13+
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
14+
15+
# https://github.com/xgqfrms/xgqfrms/settings/secrets/actions
16+
# - uses: actions/checkout@v3
17+
18+
# https://docs.github.com/en/actions/learn-github-actions/environment-variables
19+
20+
# https://github.com/xgqfrms/github-profile-3d-contrib-2022
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
name: generate-github-profile-3d-contrib
26+
steps:
27+
# - uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
29+
- uses: xgqfrms/github-profile-3d-contrib-2022
30+
# - uses: yoshi389111/[email protected]
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.METRICS_TOKEN }}
33+
USERNAME: ${{ github.repository_owner }}
34+
MAX_REPOS: 250
35+
# 执行单行命令 ??? env
36+
# - name: "Hello env $EMAIL"
37+
# run: echo "$EMAIL"
38+
# - name: "Hello env $FLAG"
39+
# if: ${{ env.FLAG == 'true' }}
40+
# run: echo "$FLAG"
41+
- name: Print env ❓
42+
run: env | sort
43+
# 执行多行命令
44+
- name: Commit & Push
45+
run: |
46+
git config user.name ${{ github.repository_owner }}
47+
git config user.email ${{ secrets.EMAIL }}
48+
git add -A .
49+
git commit -m "feat: update GitHub 3D Profile"
50+
git push
51+
# run: |
52+
# git config user.name ${{ github.repository_owner }}
53+
# git config user.email [email protected]
54+
# git add -A .
55+
# git commit -m "feat: update GitHub 3D Profile"
56+
# git push
File renamed without changes.

0 commit comments

Comments
 (0)