https://github.com/angular/angular
Raw File
Tip revision: 87074753410dfe7018afacf7bf346547278f3410 authored by Pawel Kozlowski on 26 October 2022, 18:18:26 UTC
release: cut the v14.2.8 release
Tip revision: 8707475
update-events.yml
# 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@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.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: Install AIO dependencies
        run: yarn --cwd=aio install
      - 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@3c526cbb36b8517829dbbf02a7833fa3081479bb
        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 }}
back to top