Skip to content

Commit f7e45c6

Browse files
committed
Update line counter 6
1 parent f6646c7 commit f7e45c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/line-count.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v2
1414
with:
15-
token: ${{ secrets.MY_PAT
15+
token: ${{ secrets.MY_PAT }}
1616

1717
- name: Install cloc
1818
run: sudo apt-get install cloc
@@ -21,6 +21,9 @@ jobs:
2121
id: cloc
2222
run: echo "::set-output name=lines_of_code::$(cloc src | awk '/SUM/{print $NF}')"
2323

24+
- name: Debug line count
25+
run: echo "Lines of code in src: ${{ steps.cloc.outputs.lines_of_code }}"
26+
2427
- name: Update badge
2528
run: |
2629
LINES_OF_CODE=${{ steps.cloc.outputs.lines_of_code }}
@@ -30,5 +33,5 @@ jobs:
3033
run: |
3134
git config --local user.email "action@github.com"
3235
git config --local user.name "GitHub Action"
33-
git diff --quiet && git diff --staged --quiet || (git commit -am "Update lines of code badge" && git push)
36+
git diff --quiet && git diff --staged --quiet || (git commit -am "Update lines of code badge" && git push https://x-access-token:${{ secrets.MY_PAT }}@github.com/simo8902/idk.git)
3437

0 commit comments

Comments
 (0)