generated from chibat/chrome-extension-typescript-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (52 loc) · 2.02 KB
/
gen-doc-imgs.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: build
on:
push:
branches: [ main ]
schedule:
- cron: 0 0 * * 0 # At 00:00 on Sunday.
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '15.x'
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Chrome (required for crx packaging)
run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get -y update
sudo apt-get -y install google-chrome-stable
- name: Install Python Dependencies
run: |
cd browser_control
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Gen-Images Python Script
run: |
cd browser_control
sudo apt-get install xvfb
xvfb-run --auto-servernum python gen_docs_images.py
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@28fa4848947e0faa7fa50647691d01477589d5e9
with:
commit-message: Regenerate Documentation Images
committer: MachineDoingStuffByItself <[email protected]>
branch: gen-doc-imgs
title: '[Bot] Regenerate Documentation Images'
body: |
Regenerate Documentation Images
- Ran `python gen_docs_images.py`
- Pull request created by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request