|
13 | 13 | Add a comment to your `README.md` like this: |
14 | 14 |
|
15 | 15 | ```md |
16 | | -<!--START_SECTION:codestats--> |
17 | | -<!--END_SECTION:codestats--> |
| 16 | +<!-- START_SECTION:codestats --> |
| 17 | +```text |
| 18 | + Markdown | ██████████████████████████████████████████ | 220306 |
| 19 | + JavaScript | ████████████████████████████████████ | 188377 |
| 20 | + Vue | ███████████████████████████ | 143143 |
| 21 | + HTML | ██████████████████████████ | 137284 |
| 22 | + Go | ████████████████ | 82348 |
| 23 | + YAML | ██████████████ | 73315 |
18 | 24 | ``` |
19 | | - |
20 | | -These lines will be our entry-points for the dev metrics. |
21 | | - |
22 | | -### Profile Repository |
23 | | - |
24 | | -_If you're executing the workflow on your Profile Repository (`<username>/<username>`)_ |
25 | | - |
26 | | -Please follow the steps below: |
27 | | - |
28 | | -1. Go to your `<username>/<username>/actions`, hit `New workflow`, `set up a workflow yourself`, delete all the default content github made for you. |
29 | | -2. Copy the following code and paste it to your new workflow you created at step 1: |
30 | | - |
31 | | - ```yml |
32 | | - name: CodeStats – README |
33 | | - |
34 | | - on: |
35 | | - workflow_dispatch: |
36 | | - schedule: |
37 | | - # Runs at 12am UTC |
38 | | - - cron: '0 0 * * *' |
39 | | - |
40 | | - jobs: |
41 | | - update-readme: |
42 | | - name: Update this repo's README |
43 | | - runs-on: ubuntu-latest |
44 | | - steps: |
45 | | - - uses: vergissberlin/codestats-readme@main |
46 | | - with: |
47 | | - CODESTATS_USERNAME: <username> |
48 | | - ``` |
49 | | -
|
50 | | -3. Add a comment to your `README.md` like this: |
51 | | - |
52 | | - ```md |
53 | | - <!-- START_SECTION:codestats --> |
54 | | - <!-- END_SECTION:codestats --> |
| 25 | +<!-- END_SECTION:codestats --> |
55 | 26 | ``` |
56 | 27 |
|
57 | 28 | 4. Go to Workflows menu (mentioned in step 1), click `CodeStats Readme`, click `Run workflow`. |
|
0 commit comments