-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into xxchan/with-ordinality
- Loading branch information
Showing
1,704 changed files
with
81,042 additions
and
36,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: PR Documentation Checker | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
- labeled | ||
|
||
jobs: | ||
check_pr_description: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check if PR is merged | ||
id: check_merged | ||
run: echo "merged=$(echo ${{ github.event.pull_request.merged }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT | ||
|
||
- name: Retrieve PR information | ||
uses: 8BitJonny/[email protected] | ||
id: PR | ||
with: | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Check if documentation update is needed | ||
id: check_documentation_update | ||
if: steps.PR.outputs.pr_found == 'true' | ||
run: | | ||
if [[ $PR_BODY == *"- [x] My PR needs documentation updates."* ]]; then | ||
echo "documentation_update=true" >> $GITHUB_OUTPUT | ||
elif [[ $PR_LABEL == *"user-facing-changes"* ]]; then | ||
echo "documentation_update=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "documentation_update=false" >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
PR_BODY: ${{ steps.PR.outputs.pr_body }} | ||
PR_LABEL: ${{ steps.PR.outputs.pr_labels }} | ||
|
||
- name: Create issue in other repository | ||
if: steps.check_merged.outputs.merged == 'true' && steps.check_documentation_update.outputs.documentation_update == 'true' | ||
run: | | ||
ISSUE_CONTENT="This issue tracks the documentation update needed for the merged PR #$PR_ID.\n\nSource PR URL: $PR_URL\nSource PR Merged At: $PR_MERGED_AT" | ||
curl -X POST \ | ||
-H "Authorization: Bearer ${{ secrets.ACCESS_TOKEN }}" \ | ||
-d "{\"title\": \"Document: $PR_TITLE\",\"body\": \"$ISSUE_CONTENT\"}" \ | ||
"https://api.github.com/repos/risingwavelabs/risingwave-docs/issues" | ||
env: | ||
PR_ID: ${{ steps.PR.outputs.number }} | ||
PR_URL: ${{ steps.PR.outputs.pr_url }} | ||
PR_TITLE: ${{ steps.PR.outputs.pr_title }} | ||
PR_BODY: ${{ steps.PR.outputs.pr_body }} | ||
PR_CREATED_AT: ${{ steps.PR.outputs.pr_created_at }} | ||
PR_MERGED_AT: ${{ steps.PR.outputs.pr_merged_at }} | ||
PR_CLOSED_AT: ${{ steps.PR.outputs.pr_closed_at }} | ||
PR_LABEL: ${{ steps.PR.outputs.pr_labels }} | ||
|
||
- name: print_output_variables | ||
run: | | ||
echo "Merged: ${{ steps.check_merged.outputs.merged }}" | ||
echo "PR ID: ${{ steps.PR.outputs.number }}" | ||
echo "PR URL: ${{ steps.PR.outputs.pr_url }}" | ||
echo "PR Title: ${{ steps.PR.outputs.pr_title }}" | ||
echo "PR Created At: ${{ steps.PR.outputs.pr_created_at }}" | ||
echo "PR Merged At: ${{ steps.PR.outputs.pr_merged_at }}" | ||
echo "PR Closed At: ${{ steps.PR.outputs.pr_closed_at }}" | ||
echo "PR Labels: ${{ steps.PR.outputs.pr_labels }}" | ||
echo "Documentation Update: ${{ steps.check_documentation_update.outputs.documentation_update }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,11 @@ on: | |
branches: | ||
- main | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
RUSTDOCFLAGS: "--cfg docsrs --markdown-css rust.css --markdown-no-toc --index-page /home/runner/work/risingwave/risingwave/docs/rustdoc/index.md -Zunstable-options" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -18,24 +23,32 @@ jobs: | |
uses: mozilla-actions/[email protected] | ||
with: | ||
version: "v0.5.2" | ||
- name: Docs | ||
- name: build rustdocs | ||
run: | | ||
RUSTDOCFLAGS="--markdown-css rust.css --markdown-no-toc --index-page docs/rustdoc/index.md -Zunstable-options" cargo doc --workspace --no-deps --document-private-items | ||
cargo doc --workspace --no-deps --document-private-items | ||
cp docs/rustdoc/rust.css target/doc/rust.css | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
- name: Fix file permissions | ||
shell: sh | ||
mkdir artifact | ||
cp -R target/doc/* artifact | ||
- name: Install cargo-docset | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-docset | ||
- name: build docsets | ||
run: | | ||
chmod -c -R +rX "target/doc" | | ||
while read line; do | ||
echo "::warning title=Invalid file permissions automatically fixed::$line" | ||
done | ||
cargo docset --no-clean --docset-name RisingWave | ||
tar -czf risingwave.docset.tgz target/docset/risingwave.docset | ||
echo "<entry> | ||
<version>$(date -u +%Y-%m-%dT%H:%M:%SZ)</version> | ||
<url>https://risingwavelabs.github.io/risingwave/risingwave.docset.tgz</url> | ||
</entry>" > RisingWave.xml | ||
cp -t artifact "risingwave.docset.tgz" "RisingWave.xml" | ||
- name: Upload artifacts | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: target/doc | ||
path: artifact | ||
|
||
deploy: | ||
needs: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Hakari Fix | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "synchronize"] | ||
paths: ["Cargo.lock", "**/Cargo.toml"] | ||
|
||
jobs: | ||
hakari-fix: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install cargo-hakari | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hakari | ||
|
||
- name: Hakari generate | ||
run: cargo hakari generate | ||
|
||
- name: Show diff | ||
run: git diff | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Fix "cargo-hakari" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- main | ||
- "forks/*" | ||
pull_request: | ||
branches: | ||
branches: | ||
- main | ||
- "v*.*.*-rc" | ||
merge_group: | ||
|
Oops, something went wrong.