2024-08-06 14:24:13 +00:00
|
|
|
name: Dependencies
|
|
|
|
|
2022-07-26 10:35:02 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-10 13:42:43 +00:00
|
|
|
- master
|
2022-07-26 10:35:02 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2024-08-06 14:24:13 +00:00
|
|
|
bumper:
|
|
|
|
# Pushes new refs to interested external repositories, so they can do early testing against libp2p's newer versions
|
2022-07-26 10:35:02 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-08-06 14:24:13 +00:00
|
|
|
name: Bump libp2p's version for ${{ matrix.target.repository }}:${{ matrix.target.ref }}
|
2022-09-14 12:05:43 +00:00
|
|
|
strategy:
|
2023-05-22 15:37:42 +00:00
|
|
|
fail-fast: false
|
2022-09-14 12:05:43 +00:00
|
|
|
matrix:
|
2024-08-06 14:24:13 +00:00
|
|
|
target:
|
|
|
|
- repository: status-im/nimbus-eth2
|
|
|
|
ref: unstable
|
|
|
|
- repository: waku-org/nwaku
|
|
|
|
ref: master
|
|
|
|
- repository: codex-storage/nim-codex
|
|
|
|
ref: master
|
2022-07-26 10:35:02 +00:00
|
|
|
steps:
|
2024-08-06 14:24:13 +00:00
|
|
|
- name: Clone target repository
|
|
|
|
uses: actions/checkout@v4
|
2022-07-26 10:35:02 +00:00
|
|
|
with:
|
2024-08-06 14:24:13 +00:00
|
|
|
repository: ${{ matrix.target.repository }}
|
|
|
|
ref: ${{ matrix.target.ref}}
|
2022-07-26 10:35:02 +00:00
|
|
|
path: nbc
|
|
|
|
fetch-depth: 0
|
2024-08-06 14:24:13 +00:00
|
|
|
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
2022-07-26 10:35:02 +00:00
|
|
|
|
2024-08-06 14:24:13 +00:00
|
|
|
- name: Checkout this ref in target repository
|
2022-07-26 10:35:02 +00:00
|
|
|
run: |
|
2023-06-15 16:37:01 +00:00
|
|
|
cd nbc
|
|
|
|
git submodule update --init vendor/nim-libp2p
|
|
|
|
cd vendor/nim-libp2p
|
2022-07-26 10:35:02 +00:00
|
|
|
git checkout $GITHUB_SHA
|
|
|
|
|
2024-08-06 14:24:13 +00:00
|
|
|
- name: Push this ref to target repository
|
2022-07-26 10:35:02 +00:00
|
|
|
run: |
|
|
|
|
cd nbc
|
|
|
|
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
|
|
|
git config --global user.name = "${{ github.actor }}"
|
2023-06-15 16:37:01 +00:00
|
|
|
git commit --allow-empty -a -m "auto-bump nim-libp2p"
|
2022-07-26 10:35:02 +00:00
|
|
|
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##*/}
|
2024-08-06 14:24:13 +00:00
|
|
|
|