Skip to content

Commit

Permalink
Add combined chain address and metadata files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Jun 27, 2024
1 parent fef0561 commit ede5caf
Show file tree
Hide file tree
Showing 4 changed files with 1,846 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/combine-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: assemble-data

on:
pull_request:
types: [synchronize, opened, reopened]
branches: [main]
# Allows you to run this workflow manually
workflow_dispatch:

jobs:
modify-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
**/node_modules
.yarn/cache
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}

- name: Yarn install
run: |
yarn install
CHANGES=$(git status -s)
if [[ ! -z $CHANGES ]]; then
echo "Changes found: $CHANGES"
git diff
exit 1
fi
- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Combine data
run: |
echo "Assembling chain metadata and addresses together..."
yarn build
- name: Commit changes
run: |
git add .
git commit -m "Update chain metadata and address files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit ede5caf

Please sign in to comment.