Bladeren bron

add link to porter-update-action if create is false

Anukul Sangwan 5 jaren geleden
bovenliggende
commit
4df0693dd7
1 gewijzigde bestanden met toevoegingen van 14 en 0 verwijderingen
  1. 14 0
      dashboard/src/main/home/launch/launch-flow/WorkflowPage.tsx

+ 14 - 0
dashboard/src/main/home/launch/launch-flow/WorkflowPage.tsx

@@ -87,6 +87,15 @@ const WorkflowPage: React.FC<PropsType> = (props) => {
       <Helper>
       <Helper>
         You may copy the YAML to an existing workflow and uncheck this box to
         You may copy the YAML to an existing workflow and uncheck this box to
         prevent Porter from creating a new workflow file.
         prevent Porter from creating a new workflow file.
+        <GitHubActionLink show={!props.shouldCreateWorkflow}>
+          The GitHub Action can be found at{" "}
+          <a
+            href="https://github.com/porter-dev/porter-update-action"
+            target="_blank"
+          >
+            porter-dev/porter-update-action
+          </a>
+        </GitHubActionLink>
       </Helper>
       </Helper>
       <Buffer />
       <Buffer />
       <SaveButton
       <SaveButton
@@ -168,3 +177,8 @@ const BackButton = styled.div`
     margin-left: -2px;
     margin-left: -2px;
   }
   }
 `;
 `;
+
+const GitHubActionLink = styled.p`
+  visibility: ${(props: { show: boolean }) =>
+    props.show ? "visible" : "hidden"};
+`;