Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hi5a authored Jan 10, 2025
1 parent 274b2e2 commit 3501b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ const run = async (config: R2Config) => {
if(config.prodDestinationDir && config.devDestinationDir && !config.ghRefs){
throw new Error("GitHub ref needs to be specified if prod and dev directories are")
}
if(contains(config.ghRefs, "refs/tags/v")){
if(config.ghRefs.includes("refs/tags/v")){
destDir = config.prodDestinationDir;
} else {
if(contains(config.ghRefs, "refs/heads/ma")){
if(config.ghRefs.includes("refs/heads/ma")){
destDir = config.devDestinationDir;
} else {
if(config.destinationDir && !config.prodDestinationDir || !config.devDestinationDir){
Expand Down

0 comments on commit 3501b2c

Please sign in to comment.