Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Remove font
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Aug 20, 2020
1 parent b4bdf1e commit 5d16ae8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
Binary file removed OpenDyslexic-Regular.otf
Binary file not shown.
14 changes: 12 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ async function dependencies() {
}
}

dependencies();

async function speak(text) {

const { exec } = require('child_process');
Expand Down Expand Up @@ -103,8 +101,20 @@ async function upload(file, filename, url) {
}
}

async function downloadFont(){
try {
const result = await fetch("https://github.com/antijingoist/opendyslexic/blob/master/compiled/OpenDyslexic-Regular.otf?raw=true");
const fileStream = await fs.writeFile("OpenDyslexic-Regular.otf", result);
} catch (err) {
core.setFailed('[ERROR]:' + err.message);
return false
}
}

async function run() {
try {
await dependencies();
await downloadFont();
const token = core.getInput('token');
const octokit = github.getOctokit(token);
let tts;
Expand Down

0 comments on commit 5d16ae8

Please sign in to comment.