Skip to content

Commit

Permalink
Create lines-of-code.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserbdj96 committed Jul 7, 2024
1 parent 6e0a132 commit c5de29b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lines-of-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lines Of Code

on: [push]

jobs:
print-repo-url:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install requirements
run: pip install -r requirements.txt
- name: Create Workspace Folder
run: mkdir -p wrdir
- name: get Lines Of Code repo
run: git clone https://github.com/yasserbdj96/linesofcode.git wrdir
- name: Get this repository badges
run: python wrdir/main.py --URL="https://github.com/${{ github.repository }}"
- name: remove
run: rm -rf wrdir
#- name: Copy badges back to current repo
# run: cp -R ./badges/. .
- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add .
git commit -m "Add badges folder."
git push

0 comments on commit c5de29b

Please sign in to comment.