2022-07-26 10:35:02 +00:00
|
|
|
name: Bumper
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-10 13:42:43 +00:00
|
|
|
- master
|
2022-07-26 10:35:02 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2022-09-14 12:05:43 +00:00
|
|
|
bumpProjects:
|
2022-07-26 10:35:02 +00:00
|
|
|
runs-on: ubuntu-latest
|
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:
|
|
|
|
target: [
|
|
|
|
{ repo: status-im/nimbus-eth2, branch: unstable },
|
2023-05-22 15:37:42 +00:00
|
|
|
{ repo: waku-org/nwaku, branch: master },
|
|
|
|
{ repo: codex-storage/nim-codex, branch: master }
|
2022-09-14 12:05:43 +00:00
|
|
|
]
|
2022-07-26 10:35:02 +00:00
|
|
|
steps:
|
2022-09-14 12:05:43 +00:00
|
|
|
- name: Clone repo
|
2022-07-26 10:35:02 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2022-09-14 12:05:43 +00:00
|
|
|
repository: ${{ matrix.target.repo }}
|
|
|
|
ref: ${{ matrix.target.branch }}
|
2022-07-26 10:35:02 +00:00
|
|
|
path: nbc
|
|
|
|
fetch-depth: 0
|
|
|
|
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Checkout this ref
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Commit this bump
|
|
|
|
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##*/}
|