This repository has been archived by the owner on Jul 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
56 lines (55 loc) · 2.22 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
on:
# disabled: https://developer.github.com/v3/ is no more
# schedule:
# # https://crontab.guru/every-hour
# - cron: 0 * * * *
repository_dispatch:
types: [github-docs-update]
name: Update
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 10.x
- run: git checkout routes-update || true
- run: npm ci
- name: clear routes
run: rm -rf openapi/*/operations/* cache
- name: update GHE routes
run: node bin/octokit-rest-routes.js update --ghe
- name: update .com routes
run: node bin/octokit-rest-routes.js update
- name: update cache
uses: gr2m/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "🤖📯 Octokit routes changed"
body: |
I found new changes on https://developer.github.com/v3/ and thought I'd let you know about it 👋🤖
I can't tell if the changes are fixes, features or breaking, you'll have to figure that out on yourself and adapt the commit messages accordingly to trigger the right release, see [our commit message conventions](https://github.com/octokit/routes/blob/master/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version).
branch: "routes-update"
author: "Octokit Bot <[email protected]>"
path: "cache/"
commit-message: "build: cache"
- name: update GHE routes
uses: gr2m/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: "routes-update"
author: "Octokit Bot <[email protected]>"
path: "openapi/api.github.com/"
commit-message: "WIP: api.github.com routes update"
- name: update api.github.com routes
uses: gr2m/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: "routes-update"
author: "Octokit Bot <[email protected]>"
path: "openapi/ghe*"
commit-message: "WIP: GHE routes update"