From cb75ed2e7f11afea51fdf82812a5a104d6613f47 Mon Sep 17 00:00:00 2001 From: Diego Date: Fri, 12 Apr 2024 13:12:40 +0200 Subject: [PATCH] update libp2p branch when unstable changes --- .github/workflows/update-libp2p-branch.yml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/update-libp2p-branch.yml diff --git a/.github/workflows/update-libp2p-branch.yml b/.github/workflows/update-libp2p-branch.yml new file mode 100644 index 0000000000..fea71dd1ad --- /dev/null +++ b/.github/workflows/update-libp2p-branch.yml @@ -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##*/}