/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/sync-team-members.yml
76 строк
3 KB
code-infra-renovate[bot]
Bump node (#48896)
11 авг 2026, 12:13
Не верифицирован
11 авг 2026, 12:13
f191551
Код
Авторство
О чём код?
name: Sync team members on: workflow_dispatch: inputs: reviewers: description: 'Comma-separated reviewers (users, or org/team-slug for teams)' required: false default: 'mui/admins' schedule: # Every Monday at 06:00 UTC - cron: '0 6 * * 1' permissions: {} jobs: sync: if: github.repository == 'mui/material-ui' runs-on: ubuntu-latest permissions: contents: write pull-requests: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up pnpm uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - name: Use Node.js uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '22.23.2' cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies - run: pnpm install - name: Sync team members id: sync run: | { echo 'summary<<SYNC_SUMMARY_EOF' pnpm --silent exec tsx ./docs/scripts/syncTeamMembers.ts echo 'SYNC_SUMMARY_EOF' } >> "$GITHUB_OUTPUT" pnpm prettier - name: Create or update pull request env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SYNC_SUMMARY: ${{ steps.sync.outputs.summary }} # Empty on scheduled runs, so fall back to the default reviewers. REVIEWERS: ${{ inputs.reviewers || 'mui/admins' }} run: | set -euo pipefail if [ -z "$(git status --porcelain)" ]; then echo 'No team member changes. Skipping PR.' exit 0 fi # `cherry-pick-*` is exempt from branch creation restrictions and required # status checks. `docs-*` is only exempt from the former. BRANCH=cherry-pick-sync-team-members git config user.name 'github-actions[bot]' git config user.email '41898282+github-actions[bot]@users.noreply.github.com' git switch -C "$BRANCH" git commit --all --message '[website] Sync about page team members' git push --force origin "$BRANCH" BODY="$(printf 'Automated sync of the About page team members from the [mui-about API](https://frontend-public.mui.com/api/mui-about).\n\n%s' "$SYNC_SUMMARY")" if [ -n "$(gh pr list --head "$BRANCH" --state open --json number --jq '.[].number')" ]; then gh pr edit "$BRANCH" --body "$BODY" else gh pr create \ --base master \ --head "$BRANCH" \ --title '[website] Sync about page team members' \ --body "$BODY" \ --label website \ --reviewer "$REVIEWERS" fi