Commit 1d16842b by Archer Committed by GitHub

doc action (#7048)

parent d3390dc0
...@@ -127,10 +127,10 @@ jobs: ...@@ -127,10 +127,10 @@ jobs:
echo "$KUBE_CONFIG" > "$KUBECONFIG_FILE" echo "$KUBE_CONFIG" > "$KUBECONFIG_FILE"
chmod 600 "$KUBECONFIG_FILE" chmod 600 "$KUBECONFIG_FILE"
kubectl --kubeconfig "$KUBECONFIG_FILE" set image deployment/fastgpt-docs-preview \ kubectl --kubeconfig "$KUBECONFIG_FILE" set image deployment/fastgpt-doc-preview \
fastgpt-docs-preview=ghcr.io/${{ github.repository_owner }}/fastgpt-docs-pr:${{ needs.check_pr_author.outputs.sha }} fastgpt-doc-preview=ghcr.io/${{ github.repository_owner }}/fastgpt-docs-pr:${{ needs.check_pr_author.outputs.sha }}
kubectl --kubeconfig "$KUBECONFIG_FILE" annotate deployment/fastgpt-docs-preview \ kubectl --kubeconfig "$KUBECONFIG_FILE" annotate deployment/fastgpt-doc-preview \
originImageName="ghcr.io/${{ github.repository_owner }}/fastgpt-docs-pr:${{ needs.check_pr_author.outputs.sha }}" --overwrite originImageName="ghcr.io/${{ github.repository_owner }}/fastgpt-docs-pr:${{ needs.check_pr_author.outputs.sha }}" --overwrite
- name: Format preview timestamp - name: Format preview timestamp
...@@ -144,7 +144,7 @@ jobs: ...@@ -144,7 +144,7 @@ jobs:
with: with:
script: | script: |
const prNumber = parseInt('${{ needs.check_pr_author.outputs.number }}'); const prNumber = parseInt('${{ needs.check_pr_author.outputs.number }}');
const marker = '<!-- fastgpt-docs-preview -->'; const marker = '<!-- fastgpt-doc-preview -->';
const { data: comments } = await github.rest.issues.listComments({ const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner, owner: context.repo.owner,
...@@ -159,7 +159,7 @@ jobs: ...@@ -159,7 +159,7 @@ jobs:
const commentBody = `${marker} const commentBody = `${marker}
✅ **Docs Preview Deployed!** ✅ **Docs Preview Deployed!**
🔗 [👀 Click here to visit preview](https://pueuoharpgcl.sealoshzh.site) 🔗 [👀 Click here to visit preview](https://xcldnthwehkh.sealoshzh.site)
\`\`\` \`\`\`
ghcr.io/${{ github.repository_owner }}/fastgpt-docs-pr:${{ needs.check_pr_author.outputs.sha }} ghcr.io/${{ github.repository_owner }}/fastgpt-docs-pr:${{ needs.check_pr_author.outputs.sha }}
......
Subproject commit 2e81134914c8db3b10051254721fbd8b0f566e17 Subproject commit 3284ae0be797e34adfa8d7877f8a0366f69b5e49
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment