diff --git a/templates/assets/cloudformation/pipeline.yml b/templates/assets/cloudformation/pipeline.yml index 0d1b3c56..4aa46141 100644 --- a/templates/assets/cloudformation/pipeline.yml +++ b/templates/assets/cloudformation/pipeline.yml @@ -428,6 +428,11 @@ Resources: - HasGitHubToken - !Ref GitHubToken - !Ref AWS::NoValue + PollForSourceChanges: + Fn::If: + - HasGitHubToken + - "false" + - "true" - RepositoryName: !Ref SourceRepo BranchName: !Ref SourceBranch RunOrder: 10