Skip to content

Commit

Permalink
fix: update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Oct 20, 2020
1 parent 90d9b86 commit 934163c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{html,js,md}
prettier_options: --write **/*.{html,js,md,vue,less,css}
commit_message: 'docs: prettify code'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions src/api/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import OSS from "ali-oss";
import COS from "cos-js-sdk-v5";
import Buffer from "buffer-from";
import { v4 as uuidv4 } from "uuid";
import { resolveConfigFile } from "prettier";

const defaultConfig = {
username: "filess",
Expand Down Expand Up @@ -98,7 +97,7 @@ async function ghFileUpload(content, filename) {
},
});
const githubResourceUrl = "raw.githubusercontent.com/filess/images/master/";
const cdnResourceUrl = "cdn.jsdelivr.net/gh/filess/images/";
const cdnResourceUrl = "cdn.jsdelivr.net/gh/filess/images@master/";
return isDefault
? res.content.download_url.replace(githubResourceUrl, cdnResourceUrl)
: res.content.download_url;
Expand Down

0 comments on commit 934163c

Please sign in to comment.