Skip to content

Update library

Update library #7127

Workflow file for this run

name: Update library
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
on:
schedule:
- cron: "0 * * * *"
push:
paths-ignore:
- "src/**"
branches:
- main
workflow_dispatch:
jobs:
check-proposals:
name: Check if library is up to date
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: bgd-labs/action-rpc-env@main
with:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
- name: Update
run: bun run cache
- name: check diff
run: |
if [[ -z $(git status -s) ]]
then
echo "tree is clean"
else
git config --global user.name 'Cache bot'
git config --global user.email '[email protected]'
git config --global pull.rebase true
git add .
git commit -am "chore(cache): automatic cache update :robot:"
git pull --rebase --autostash
git push
exit
fi