File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async function run() {
1111 let pr ;
1212 // If we aren't running on a PR commit, double check if this is a branch created for a fork. If so, we'll need to
1313 // comment the build link on the fork.
14- if ( true ) {
14+ if ( ! process . env . CIRCLE_PULL_REQUEST ) {
1515 try {
1616 const commit = await octokit . git . getCommit ( {
1717 owner : 'adobe' ,
@@ -41,7 +41,7 @@ async function run() {
4141 break ;
4242 }
4343 }
44- } else if ( true ) {
44+ } else if ( process . env . CIRCLE_BRANCH === 'main' ) {
4545 //If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
4646 await octokit . repos . createCommitComment ( {
4747 owner : 'adobe' ,
Original file line number Diff line number Diff line change @@ -647,6 +647,9 @@ workflows:
647647 requires :
648648 - install
649649 - docs-verdaccio :
650+ filters :
651+ branches :
652+ only : main
650653 requires :
651654 - install
652655 - deploy :
You can’t perform that action at this time.
0 commit comments