Files
shields/.github/workflows/update-github-api.yml
T
LitoMore b7b3ef9bf1 Centralize CI node-version in .node-version (#11815)
* Centralize CI node-version in `.node-version`

* Add `node-version-file` to our custom setup action

* Fix missing input field

* Maintain the `node-version-file` default value in `setup/action.yml`
2026-05-11 17:07:58 +00:00

32 lines
748 B
YAML

name: Update GitHub API Version
on:
schedule:
- cron: '0 7 * * 6'
# At 07:00 on Saturday
workflow_dispatch:
permissions:
pull-requests: write
contents: write
jobs:
update-github-api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup
uses: ./.github/actions/setup
- name: Check for new GitHub API version
run: node scripts/update-github-api.js
- name: Create Pull Request if config has changed
uses: peter-evans/create-pull-request@v8
with:
token: '${{ secrets.GITHUB_TOKEN }}'
commit-message: Update GitHub API Version
title: Update [GitHub] API Version
branch-suffix: random