Просмотр исходного кода

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

Anukul Sangwan 4 лет назад
Родитель
Сommit
4df0693dd7
1 измененных файлов с 14 добавлено и 0 удалено
  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>
         You may copy the YAML to an existing workflow and uncheck this box to
         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>
       <Buffer />
       <SaveButton
@@ -168,3 +177,8 @@ const BackButton = styled.div`
     margin-left: -2px;
   }
 `;
+
+const GitHubActionLink = styled.p`
+  visibility: ${(props: { show: boolean }) =>
+    props.show ? "visible" : "hidden"};
+`;