Skip to content

Commit

Permalink
Modify url branch name to github default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vn7n24fzkq committed Feb 23, 2021
1 parent 9817a91 commit f101462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/file-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const GITHUB_REPOSITORY = process.env.GITHUB_REPOSITORY;
// If neither a branch or tag is available for the event type, the variable will not exist. https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
const GITHUB_BRANCH =
process.env.GITHUB_REF == undefined
? "master"
? "main"
: process.env.GITHUB_REF.split("/").pop();

const writeSVG = function (folder, filename, svgString) {
Expand Down

0 comments on commit f101462

Please sign in to comment.