Adding 0xbd3cff88738351E82BBC5dC36bb02fB2D3d21bbC (#47) #25
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: Merge Configs and Create Pull Request | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "configs/**" | |
workflow_dispatch: | |
jobs: | |
merge_configs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile --ignore-scripts | |
shell: bash | |
- name: Run merge-configs script | |
run: yarn merge-configs | |
- 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: Commit changes | |
run: | | |
git add build/ | |
git commit -m "Auto-generated build file after merging to master" | |
- name: Push changes and create pull request | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
BRANCH_NAME="auto-build-$(date +%s)" | |
git checkout -b "$BRANCH_NAME" | |
git push origin "$BRANCH_NAME" | |
gh pr create --base master --head "$BRANCH_NAME" --title "Auto-generated build file" --body " | |
## 🤖 Updated relayer config 🤖 | |
This pull request was automatically created as part of our CI process to update the configuration files in the \`/configs\` directory. | |
" |