-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (61 loc) · 1.8 KB
/
build.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
57
58
59
60
61
62
63
64
name: Update members
on:
workflow_dispatch:
# Uncomment to schedule builds
# schedule:
#- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout landscape
uses: actions/checkout@v3
with:
path: landscape
- name: Checkout landscape-tools
uses: actions/checkout@v3
with:
repository: jmertic/landscape-tools
path: landscape-tools
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r landscape-tools/requirements.txt
- name: Run build
working-directory: ./landscape
run: |
../landscape-tools/landscapemembers.py
- name: Save missing.csv file
uses: actions/upload-artifact@v3
with:
name: missing-members
path: ./landscape/missing.csv
- name: Checkout landscapeapp
uses: actions/checkout@v3
with:
repository: cncf/landscapeapp
path: landscapeapp
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: cleanup yml files
working-directory: ./landscapeapp
run: |
node tools/removePuppeteer
npm install
PROJECT_PATH=../landscape node tools/removeQuotes
PROJECT_PATH=../landscape node tools/pruneExtraEntries
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PAT }}
branch-suffix: timestamp
path: ./landscape
title: Update members
labels: automated-build
commit-message: Update members