Convert more files to TypeScript sync.js & find-page.js (#51775)
This commit is contained in:
@@ -95,7 +95,7 @@ jobs:
|
||||
changes=$(git diff --name-only | wc -l)
|
||||
untracked=$(git status --untracked-files --short | wc -l)
|
||||
if [[ $changes -eq 0 ]] && [[ $untracked -eq 0 ]]; then
|
||||
echo "There are no changes to commit after running src/rest/scripts/update-files.js. Exiting..."
|
||||
echo "There are no changes to commit or untracked files. Exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
2
.github/workflows/sync-audit-logs.yml
vendored
2
.github/workflows/sync-audit-logs.yml
vendored
@@ -55,7 +55,7 @@ jobs:
|
||||
changes=$(git diff --name-only | wc -l)
|
||||
untracked=$(git status --untracked-files --short | wc -l)
|
||||
if [[ $changes -eq 0 ]] && [[ $untracked -eq 0 ]]; then
|
||||
echo "There are no changes to commit after running src/rest/scripts/update-files.js. Exiting..."
|
||||
echo "There are no changes to commit or untracked files. Exiting..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
4
.github/workflows/sync-openapi.yml
vendored
4
.github/workflows/sync-openapi.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
||||
# Needed for gh
|
||||
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
|
||||
run: |
|
||||
src/rest/scripts/update-files.js --source-repo rest-api-description --output rest github-apps webhooks rest-redirects
|
||||
npm run sync-rest -- --source-repo rest-api-description --output rest github-apps webhooks rest-redirects
|
||||
git status
|
||||
echo "Deleting the cloned github/rest-api-description repo..."
|
||||
rm -rf rest-api-description
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
# If nothing to commit, exit now. It's fine. No orphans.
|
||||
changes=$(git diff --name-only | wc -l)
|
||||
if [[ $changes -eq 0 ]]; then
|
||||
echo "There are no changes to commit after running src/rest/scripts/update-files.js. Exiting..."
|
||||
echo "There are no changes to commit after running `npm run sync-rest` Exiting..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user