Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
Migrate from Docker action to JavaScript action (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
BSKY authored and matchai committed Dec 26, 2019
1 parent b28127c commit 9af78dc
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 347 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update gist with WakaTime stats
on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
jobs:
update-gist:
runs-on: ubuntu-latest
Expand Down
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "waka-box"
description: "Update a pinned gist to contain WakaTime stats"
branding:
icon: "clipboard"
color: "blue"
runs:
using: "node12"
main: "index.js"
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ function generateBarChart(percent, size) {
}
const semi = frac % 8;

return [
syms.substring(8, 9).repeat(barsFull),
syms.substring(semi, semi + 1),
].join("").padEnd(size, syms.substring(0, 1));
return [syms.substring(8, 9).repeat(barsFull), syms.substring(semi, semi + 1)]
.join("")
.padEnd(size, syms.substring(0, 1));
}

(async () => {
Expand Down
Loading

0 comments on commit 9af78dc

Please sign in to comment.