ソースを参照

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

Anukul Sangwan 4 年 前
コミット
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"};
+`;