mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-26 19:40:32 +00:00
merge nbc auto bump with CI in order to bump only on CI success
This commit is contained in:
parent
2d3595708c
commit
3bf6acef23
80
.github/workflows/ci.yml
vendored
80
.github/workflows/ci.yml
vendored
@ -205,3 +205,83 @@ jobs:
|
|||||||
cd nim-libp2p
|
cd nim-libp2p
|
||||||
nimble install -y --depsOnly
|
nimble install -y --depsOnly
|
||||||
nimble test
|
nimble test
|
||||||
|
|
||||||
|
bumpNBC-stable:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: status-im/github-app-token@v1
|
||||||
|
name: Generate token
|
||||||
|
id: generate-token
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.BUMP_BOT_APP_ID }}
|
||||||
|
private_key: ${{ secrets.BUMP_BOT_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Clone NBC
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: status-im/nimbus-eth2
|
||||||
|
path: nbc
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Checkout this ref
|
||||||
|
run: |
|
||||||
|
cd nbc/vendor/nim-libp2p
|
||||||
|
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 }}"
|
||||||
|
git commit -a -m "auto-bump nim-libp2p"
|
||||||
|
|
||||||
|
- name: Make PR
|
||||||
|
uses: peter-evans/create-pull-request@v3.5.0
|
||||||
|
with:
|
||||||
|
branch: nim-libp2p-auto-bump
|
||||||
|
path: nbc
|
||||||
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
|
title: nim-libp2p auto bump
|
||||||
|
|
||||||
|
bumpNBC-unstable:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: status-im/github-app-token@v1
|
||||||
|
name: Generate token
|
||||||
|
id: generate-token
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.BUMP_BOT_APP_ID }}
|
||||||
|
private_key: ${{ secrets.BUMP_BOT_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Clone NBC
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: status-im/nimbus-eth2
|
||||||
|
ref: unstable
|
||||||
|
path: nbc
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Checkout this ref
|
||||||
|
run: |
|
||||||
|
cd nbc/vendor/nim-libp2p
|
||||||
|
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 }}"
|
||||||
|
git commit -a -m "auto-bump nim-libp2p"
|
||||||
|
|
||||||
|
- name: Make PR
|
||||||
|
uses: peter-evans/create-pull-request@v3.5.0
|
||||||
|
with:
|
||||||
|
branch: nim-libp2p-auto-bump-unstable
|
||||||
|
path: nbc
|
||||||
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
|
title: nim-libp2p unstable auto bump
|
||||||
|
draft: true
|
||||||
|
82
.github/workflows/nbc.yml
vendored
82
.github/workflows/nbc.yml
vendored
@ -1,82 +0,0 @@
|
|||||||
name: NBC Bump PR
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
# maybe refactor using matrix but requires changes NBC side
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
bumpNBC-stable:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: status-im/github-app-token@v1
|
|
||||||
name: Generate token
|
|
||||||
id: generate-token
|
|
||||||
with:
|
|
||||||
app_id: ${{ secrets.BUMP_BOT_APP_ID }}
|
|
||||||
private_key: ${{ secrets.BUMP_BOT_APP_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- name: Clone NBC
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: status-im/nimbus-eth2
|
|
||||||
path: nbc
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Checkout this ref
|
|
||||||
run: |
|
|
||||||
cd nbc/vendor/nim-libp2p
|
|
||||||
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 }}"
|
|
||||||
git commit -a -m "auto-bump nim-libp2p"
|
|
||||||
|
|
||||||
- name: Make PR
|
|
||||||
uses: peter-evans/create-pull-request@v3.5.0
|
|
||||||
with:
|
|
||||||
branch: nim-libp2p-auto-bump
|
|
||||||
path: nbc
|
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
|
||||||
title: nim-libp2p auto bump
|
|
||||||
|
|
||||||
bumpNBC-unstable:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: status-im/github-app-token@v1
|
|
||||||
name: Generate token
|
|
||||||
id: generate-token
|
|
||||||
with:
|
|
||||||
app_id: ${{ secrets.BUMP_BOT_APP_ID }}
|
|
||||||
private_key: ${{ secrets.BUMP_BOT_APP_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- name: Clone NBC
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: status-im/nimbus-eth2
|
|
||||||
ref: unstable
|
|
||||||
path: nbc
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Checkout this ref
|
|
||||||
run: |
|
|
||||||
cd nbc/vendor/nim-libp2p
|
|
||||||
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 }}"
|
|
||||||
git commit -a -m "auto-bump nim-libp2p"
|
|
||||||
|
|
||||||
- name: Make PR
|
|
||||||
uses: peter-evans/create-pull-request@v3.5.0
|
|
||||||
with:
|
|
||||||
branch: nim-libp2p-auto-bump-unstable
|
|
||||||
path: nbc
|
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
|
||||||
title: nim-libp2p auto bump
|
|
Loading…
x
Reference in New Issue
Block a user