wormhole-token-list/.github/workflows/update.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

name: Update Content
on:
2023-04-02 16:02:04 -07:00
workflow_dispatch:
push:
2022-05-18 15:43:07 -07:00
branches:
- "*"
2023-03-24 20:14:06 -07:00
- "!main"
jobs:
build:
2023-09-29 19:24:19 -07:00
runs-on: ubuntu-latest & Mac Os
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
2023-04-02 16:02:04 -07:00
- name: Install python dependencies
run: python -m pip install -r requirements.txt
- name: Update logos
run: npm run gen-logos
- name: Update content
run: npm run gen
2023-04-02 16:02:04 -07:00
- name: Install node dependencies
run: npm ci
- name: Test updated files
run: npm test
- 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'
2022-05-18 15:43:07 -07:00
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