feat: add staking contract on sepolia #101
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: Generate Repository File | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Install & Prepare | |
run: yarn | |
- name: Generate all.json | |
run: node scripts/generateRepositoryFile.js | |
- name: Commit and push (if changed) | |
run: | | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions" | |
git commit --no-verify -am "Updated repository/all.json" || exit 0 | |
git push --no-verify | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |