mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
59 lines
2 KiB
YAML
59 lines
2 KiB
YAML
name: Update ADEV Cross Repo Docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs: {}
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- '[0-9]+.[0-9]+.x'
|
|
|
|
# Declare default permissions as read only.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update_adev_cross_repo_docs:
|
|
name: Update Cross Repo ADEV Docs
|
|
if: github.repository == 'angular/angular'
|
|
runs-on: ubuntu-latest
|
|
# Prevents multiple concurrent runs of this workflow for the same branch
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
# Setting `persist-credentials: false` prevents the github-action account from being the
|
|
# account that is attempted to be used for authentication, instead the remote is set to
|
|
# an authenticated URL.
|
|
persist-credentials: false
|
|
|
|
- name: Generate Docs
|
|
run: node adev/scripts/update-cross-repo-docs/index.mjs
|
|
env:
|
|
ANGULAR_READONLY_GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }}
|
|
|
|
- name: Create a PR (if necessary)
|
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
with:
|
|
token: ${{ secrets.ANGULAR_ROBOT_ACCESS_TOKEN }}
|
|
push-to-fork: 'angular-robot/angular'
|
|
delete-branch: true
|
|
maintainer-can-modify: false
|
|
branch: docs-cross-repo-update-${{github.ref_name}}
|
|
committer: Angular Robot <angular-robot@google.com>
|
|
author: Angular Robot <angular-robot@google.com>
|
|
title: 'docs: update cross-repo adev docs [${{github.ref_name}}]'
|
|
body: |
|
|
Updated Angular adev cross repo docs files.
|
|
labels: |
|
|
action: merge
|
|
area: docs
|
|
target: automation
|
|
commit-message: |
|
|
docs: update cross-repo adev docs
|
|
|
|
Updated Angular adev cross repo docs files.
|