mirror of
https://github.com/badges/shields.git
synced 2026-11-21 16:06:35 +03:00
* 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`
32 lines
748 B
YAML
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
|