Add combined chain address and metadata files #1
Workflow file for this run
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
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 }} |