Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Test doc preview urls (take 2)#1462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
aantn wants to merge6 commits intomaster
base:master
Choose a base branch
Loading
fromdocs-preview-urls
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update deploy-docs.yaml
  • Loading branch information
@aantn
aantn committedJun 18, 2024
commit585bbfcab8ecf6ff6826813bfa893d522b09e2cc
26 changes: 15 additions & 11 deletions.github/workflows/deploy-docs.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,9 +8,11 @@ on:
paths:
- 'docs/**'
- .github/workflows/deploy-docs.yaml
# we need this in addition to push to build the docs when the PR is opened and not just on later pushes after it is open
pull_request:
paths:
- 'docs/**'
types: [opened]


jobs:
Expand All@@ -34,6 +36,19 @@ jobs:
PROJECT_ID: ${{ secrets.GKE_PROD_PROJECT }}

steps:
# we do this before building the docs so that even if the docs fail building, we still have the comment on the PR for later once the build is fixed
# (we can't post the comment each time this workflow runs on we will have multiple comments, so we need to post it only once when the PR is opened)
- name: Post preview link on PR
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(echo ${{ github.event.pull_request.number }})
PREVIEW_URL="https://docs.robusta.dev/${GITHUB_HEAD_REF}"
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-d "{\"body\": \"🔍 [Preview Docs](${PREVIEW_URL})\n\n**Note: preview docs will only be available at this URL once the initial docs finish building!**\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"

- name: Checkout
uses: actions/checkout@v2

Expand DownExpand Up@@ -85,14 +100,3 @@ jobs:
with:
name: docs
path: docs/_build/html

- name: Post preview link on PR
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(echo ${{ github.event.pull_request.number }})
PREVIEW_URL="https://docs.robusta.dev/${GITHUB_HEAD_REF}"
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-d "{\"body\": \"🔍 [Preview Docs](${PREVIEW_URL})\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"

[8]ページ先頭

©2009-2025 Movatter.jp