chore(workflows): update actions/checkout action to v3.6.0 (#17736) #3914
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Badge | |
'on': | |
push: | |
branches: [main] | |
jobs: | |
count-code-lines: | |
name: Count Code Lines | |
runs-on: ubuntu-22.04 | |
environment: production | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install cloc | |
run: | | |
sudo apt update --yes | |
sudo apt install --yes cloc | |
- name: Count code lines | |
run: | | |
echo "CODE_LINE_COUNT=$(bin/count_code_lines.sh)" >> $GITHUB_ENV | |
- name: Create badge | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GIST_TOKEN }} | |
gistID: ecff3e2b8226a5c1406b0c2e2622e968 | |
filename: code_line_count.json | |
label: code lines | |
labelColor: gray | |
message: ${{ env.CODE_LINE_COUNT }} | |
color: blue |