mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commits changes the fetch depth from 1 to 0 in the update-events` and `update-cli-help` actions. This is required as otherwise the PR creation would fail when the forked (https://github.com/angular-robot/angular) is not in sync with (https://github.com/angular/angular) ie the later has commits which are not in the former. PR Close #48698
48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
# Update the `events.json` file that powers the [AIO events page](https://angular.io/events) (if
|
|
# necessary) and create a pull request.
|
|
#
|
|
# For more details on the overall process, see
|
|
# [aio/scripts/generate-events/README.md](../../aio/scripts/generate-events/README.md).
|
|
|
|
name: Update AIO events
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs: {}
|
|
schedule:
|
|
# Run every day at 15:00.
|
|
- cron: '0 15 * * *'
|
|
|
|
# Declare default permissions as read only.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update_events:
|
|
name: Update `events.json` (if necessary)
|
|
if: github.repository == 'angular/angular'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # tag=v3.2.0
|
|
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
|
|
# This is needed as otherwise the PR creation will fail with `shallow update not allowed` when the forked branch is not in sync.
|
|
fetch-depth: 0
|
|
- name: Generate `events.json`
|
|
run: node aio/scripts/generate-events/index.mjs --ignore-invalid-dates
|
|
- name: Create a PR (if necessary)
|
|
uses: angular/dev-infra/github-actions/create-pr-for-changes@96fdaaa056f1cfa7ffbc4c69b7e9007279f76c94
|
|
with:
|
|
branch-prefix: docs-update-events
|
|
pr-title: 'docs: update events'
|
|
pr-description: |
|
|
Generated `events.json` with the latest events retrieved from the Firebase DB.
|
|
pr-labels: |
|
|
action: review
|
|
area: docs
|
|
target: patch
|
|
angular-robot-token: ${{ secrets.ANGULAR_ROBOT_ACCESS_TOKEN }}
|