Skip to content

Commit

Permalink
update libp2p branch when unstable changes
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Apr 12, 2024
1 parent c57fcb4 commit cb75ed2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update-libp2p-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update libp2p branch
on:
push:
branches:
- unstable
- update-libp2p-branch
workflow_dispatch:

jobs:
bumpProjects:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Update libp2p branch
run: |
cd vendor/nim-libp2p
git checkout unstable
- name: Commit this update
run: |
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name = "${{ github.actor }}"
git commit --allow-empty -a -m "update nimbus unstable and auto-bump nim-libp2p"
git branch -D nim-libp2p-auto-bump-${GITHUB_REF##*/} || true
git switch -c nim-libp2p-auto-bump-${GITHUB_REF##*/}
git push -f origin nim-libp2p-auto-bump-${GITHUB_REF##*/}

0 comments on commit cb75ed2

Please sign in to comment.