From 05d3c696bb0c34b828b66251e83bc8f0656c19ed Mon Sep 17 00:00:00 2001 From: Anukiran Date: Tue, 7 Apr 2026 18:54:17 -0500 Subject: [PATCH 1/2] update git workflow for SDK and AppShell --- .github/workflows/app-shell-sync.yml | 19 +++++++------------ .github/workflows/sdk-docs-sync.yml | 22 +++++++++------------- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/.github/workflows/app-shell-sync.yml b/.github/workflows/app-shell-sync.yml index d9dfdc1..706544b 100644 --- a/.github/workflows/app-shell-sync.yml +++ b/.github/workflows/app-shell-sync.yml @@ -10,7 +10,6 @@ jobs: runs-on: ubuntu-slim permissions: contents: write - pull-requests: write env: APP_SHELL_REF: main @@ -53,15 +52,11 @@ jobs: echo "changed=true" >> $GITHUB_OUTPUT fi - - name: Create Pull Request + - name: Commit and push changes if: steps.git_diff.outputs.changed == 'true' - uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 - with: - path: docs - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: Update App Shell pages - branch: update-app-shell-pages - title: Update App Shell pages - body: Auto-created by the update_app_shell_docs workflow. - base: main - labels: DOCS + working-directory: docs + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git commit -m "Update App Shell pages" + git push origin main diff --git a/.github/workflows/sdk-docs-sync.yml b/.github/workflows/sdk-docs-sync.yml index 6ea6b65..efc6a5c 100644 --- a/.github/workflows/sdk-docs-sync.yml +++ b/.github/workflows/sdk-docs-sync.yml @@ -10,7 +10,6 @@ jobs: runs-on: ubuntu-slim permissions: contents: write - pull-requests: write env: FRONTEND_REF: main @@ -46,21 +45,18 @@ jobs: id: git_diff run: | git config --global --add safe.directory $PWD - if git diff --quiet; then + git add -A + if git diff --staged --quiet; then echo "changed=false" >> $GITHUB_OUTPUT else echo "changed=true" >> $GITHUB_OUTPUT fi - - name: Create Pull Request + - name: Commit and push changes if: steps.git_diff.outputs.changed == 'true' - uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 - with: - path: docs - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: Update SDK pages - branch: update-sdk-pages - title: Update SDK pages - body: Auto-created by the update_sdk_docs workflow. - base: main - labels: DOCS + working-directory: docs + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git commit -m "Update SDK pages" + git push origin main From c15244a393ac1fc57862af20439393c55cf240df Mon Sep 17 00:00:00 2001 From: Anukiran Date: Wed, 8 Apr 2026 13:17:30 -0500 Subject: [PATCH 2/2] update script to convert directory index links to trailing slash --- scripts/docs-sync/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/docs-sync/main.ts b/scripts/docs-sync/main.ts index 8ec18b4..e14c067 100644 --- a/scripts/docs-sync/main.ts +++ b/scripts/docs-sync/main.ts @@ -152,6 +152,7 @@ walk(config.dst) let content = fs.readFileSync(f, "utf8"); content = content.replace(/\(https:\/\/docs\.tailor\.tech(\/[^)]*)\)/g, "($1)"); content = content.replace(/\(\.\//g, "("); + content = content.replace(/\/index\.md\)/g, "/)"); content = content.replace(/\.md\)/g, ")"); content = fixHeadingLevels(content); content = stripNonAllowedLinks(content);