-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add combined chain address and metadata files
- Loading branch information
Showing
4 changed files
with
1,846 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.