Skip to content

Commit

Permalink
update publish.js github action
Browse files Browse the repository at this point in the history
  • Loading branch information
metablaster committed Dec 22, 2022
1 parent 1dd2268 commit abe2394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Actions/publish_sitemap/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const searchconsole = google.searchconsole('v1');
// $Data = Get-Content -Path keys.json -Encoding utf8
// $GOOGLE_SEARCH_CONSOLE_KEY = [System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($Data))
// Set-Clipboard -Value $GOOGLE_SEARCH_CONSOLE_KEY
// TODO: Resolve "The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined"
const buffer = Buffer.from(process.env.GOOGLE_SEARCH_CONSOLE_KEY, 'base64').toString('utf-8');
const keys = JSON.parse(JSON.stringify(buffer));

Expand Down
2 changes: 1 addition & 1 deletion Actions/publish_sitemap/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
echoerr() { printf "%s\n" "$*" >&2; }
node Actions/publish_sitemap/publish.js

# NOTE: This file should have LF end of line
# NOTE: This file should have LF end of line because it's run in UNIX environment

0 comments on commit abe2394

Please sign in to comment.