-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·39 lines (31 loc) · 934 Bytes
/
main.yml
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: Calculate Lines Committed by Contributors
on:
push:
branches:
- main # Adjust the branch as needed
jobs:
calculate-lines:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install requests regex
- name: Execute Python Script
run: python .github/workflows/calculate_lines.py
env:
owner: NewS0ul
repo: ProCom
GITHUB_TOKEN: ${{ secrets.TOKEN }} # add secret named TOKEN
- name: Commit and push updated README.md
run: |
git config --global user.email "[email protected]"
git config --global user.name "kikimeter"
git add README.md
git commit -m "Update KIKIMETER"
git push
working-directory: ${{ github.workspace }}