소스 검색

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

Anukul Sangwan 5 년 전
부모
커밋
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>
       <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"};
+`;