-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (47 loc) · 1.33 KB
/
Copy pathrunner-info.yml
File metadata and controls
53 lines (47 loc) · 1.33 KB
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
name: Runner Info
on:
workflow_dispatch:
schedule:
- cron: '49 4 * * *'
jobs:
build:
strategy:
matrix:
include:
- name: ubuntu
runner: ubuntu-latest
- name: macos
runner: macos-latest
name: '${{ matrix.name }}'
runs-on: '${{ matrix.runner }}'
timeout-minutes: 5
concurrency:
group: '${{ github.workflow }}-${{ matrix.runner }}'
cancel-in-progress: true
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Checkout the wiki repository
uses: actions/checkout@v3
with:
repository: "${{ github.repository }}.wiki"
ref: master
path: .wiki
- name: Configure the GitHub wiki identity
working-directory: .wiki
run: |
set -xeu -o pipefail
git config user.name "${GITHUB_ACTOR}[bot]"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Generate the Wiki Page
run: |
set -xeu -o pipefail
./tools/runner-info "${{ runner.os }}" | tee .wiki/Runner-${{ runner.os }}.md
- name: Update the wiki page
working-directory: .wiki
run: |
set -xeu -o pipefail
git add .
if git commit -m "update the wiki page by bot (${GITHUB_WORKFLOW})" ; then
git push origin master
fi