add github action to autoupdate content/logos
This commit is contained in:
parent
3b930325f4
commit
142c6b1474
|
@ -0,0 +1,35 @@
|
||||||
|
name: Update Content
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: python -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Update content
|
||||||
|
run: npm run gen
|
||||||
|
|
||||||
|
- name: Update logos
|
||||||
|
run: npm run gen-logos
|
||||||
|
|
||||||
|
- name: Check for modified files
|
||||||
|
id: git-check
|
||||||
|
run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)
|
||||||
|
|
||||||
|
- name: Update changes in GitHub repository
|
||||||
|
if: steps.git-check.outputs.modified == 'true'
|
||||||
|
run: |
|
||||||
|
git config --global user.name 'WormholeBot'
|
||||||
|
git config --global user.email 'wormhole@wormholenetwork.com'
|
||||||
|
git add -A
|
||||||
|
git commit -m '[automated] update content'
|
||||||
|
git push
|
|
@ -1,5 +1,8 @@
|
||||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# python
|
||||||
|
*.pyc
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
/node_modules
|
/node_modules
|
||||||
/.pnp
|
/.pnp
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
CairoSVG==2.5.2
|
||||||
|
cairocffi==1.3.0
|
||||||
|
certifi==2019.11.28
|
||||||
|
charset-normalizer==2.0.6
|
||||||
|
cffi==1.14.6
|
||||||
|
cssselect2==0.4.1
|
||||||
|
defusedxml==0.7.1
|
||||||
|
idna==2.8
|
||||||
|
json5==0.9.6
|
||||||
|
jsonpatch==1.22
|
||||||
|
jsonpointer==2.0
|
||||||
|
jsonschema==3.2.0
|
||||||
|
numpy==1.21.2
|
||||||
|
pandas==1.3.3
|
||||||
|
Pillow==8.3.2
|
||||||
|
python-dateutil==2.8.2
|
||||||
|
pytz==2021.3
|
||||||
|
requests==2.26.0
|
||||||
|
six==1.14.0
|
||||||
|
tabulate==0.8.9
|
||||||
|
tinycss2==1.1.1
|
||||||
|
urllib3==1.25.8
|
||||||
|
webencodings==0.5.1
|
Loading…
Reference in New Issue