-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (43 loc) · 1.21 KB
/
main.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
name: Development Build
on:
push:
branches:
- main
concurrency: dev-${{ github.ref }}
jobs:
build-windows:
name: Build
uses: ./.github/workflows/ci-windows.yml
build-linux:
name: Build
uses: ./.github/workflows/ci-linux.yml
build-mac:
name: Build
uses: ./.github/workflows/ci-mac.yml
housekeep:
name: Housekeep
runs-on: ubuntu-latest
steps:
- name: Update PRs
run: |
import { Octokit } from 'octokit';
const octokit = new Octokit({ auth: '${{ secrets.GITHUB_TOKEN }}' });
const owner = '${{ github.event.repository.owner.login }}';
const repo = '${{ github.event.repository.name }}';
const resp = await octokit.request('GET /repos/{owner}/{repo}/pulls', {
owner,
repo,
base: '${{ github.ref_name }}',
sort: 'updated',
direction: 'desc',
per_page: 100,
});
for (const pull of resp.data) {
await octokit.request('POST /repos/{owner}/{repo}/issues/{issue_number}/labels', {
owner,
repo,
issue_number: pull.number,
labels: ['B-out-of-date'],
});
}
shell: node --input-type=module {0}