Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 7 additions & 12 deletions .github/workflows/app-shell-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
runs-on: ubuntu-slim
permissions:
contents: write
pull-requests: write

env:
APP_SHELL_REF: main
Expand Down Expand Up @@ -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
22 changes: 9 additions & 13 deletions .github/workflows/sdk-docs-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
runs-on: ubuntu-slim
permissions:
contents: write
pull-requests: write

env:
FRONTEND_REF: main
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions scripts/docs-sync/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading