Skip to content

Update rest-api-spec #9856

Update rest-api-spec

Update rest-api-spec #9856

name: Update rest-api-spec
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * *' # At 04:00.
jobs:
update-rest-api:
name: Update rest-api-spec
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: ['main', '9.1', '9.0', '8.19', '8.18']
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install deps
run: |
npm install --prefix .github/download-artifacts
make setup
- name: Download artifacts
run: |
node .github/download-artifacts/index.js --branch ${{ matrix.branch }}
- name: Generate output
run: |
make contrib
- name: Debug git status
run: |
git status --porcelain
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: Update rest-api-spec ${{ matrix.branch }}
body: 'As titled.'
commit-message: 'Update rest-api-spec'
labels: specification,skip-backport
delete-branch: true
reviewers: Anaethelion,ezimuel,flobernd,JoshMock,l-trotta,miguelgrinberg,picandocodigo,pquentin,swallez,technige
branch: automated/rest-api-spec-update-${{ matrix.branch }}