File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 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
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 }}
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
You can’t perform that action at this time.
0 commit comments