-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
140 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 50 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every weekday | ||
interval: "daily" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: loc | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'README.md' | ||
- 'COPYRIGHT' | ||
- 'LICENSE*' | ||
- '**.md' | ||
- '**.txt' | ||
- 'art' | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- 'COPYRIGHT' | ||
- 'LICENSE*' | ||
- '**.md' | ||
- '**.txt' | ||
- 'art' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
loc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
run: | | ||
rustup update stable && rustup default stable | ||
rustup component add clippy | ||
rustup component add rustfmt | ||
- name: Install tokeit | ||
run: | | ||
cargo install tokeit --force | ||
- name: Count total lines of code | ||
run: | | ||
tokeit | ||
- name: Upload total loc to GitHub Gist | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GIST_PAT }} | ||
script: | | ||
const fs = require('fs'); | ||
const output = fs.readFileSync('tokeit.json', 'utf8'); | ||
const gistId = '327b2a8aef9003246e45c6e47fe63937'; | ||
await github.rest.gists.update({ | ||
gist_id: gistId, | ||
files: { | ||
"caches": { | ||
content: output | ||
} | ||
} | ||
}); |
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
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
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
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