Bumper: fix case where target is up to date (#917)
This commit is contained in:
parent
49dfa84c6f
commit
9d4c4307de
|
@ -24,13 +24,14 @@ jobs:
|
||||||
repository: ${{ matrix.target.repo }}
|
repository: ${{ matrix.target.repo }}
|
||||||
ref: ${{ matrix.target.branch }}
|
ref: ${{ matrix.target.branch }}
|
||||||
path: nbc
|
path: nbc
|
||||||
submodules: true
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Checkout this ref
|
- name: Checkout this ref
|
||||||
run: |
|
run: |
|
||||||
cd nbc/vendor/nim-libp2p
|
cd nbc
|
||||||
|
git submodule update --init vendor/nim-libp2p
|
||||||
|
cd vendor/nim-libp2p
|
||||||
git checkout $GITHUB_SHA
|
git checkout $GITHUB_SHA
|
||||||
|
|
||||||
- name: Commit this bump
|
- name: Commit this bump
|
||||||
|
@ -38,7 +39,7 @@ jobs:
|
||||||
cd nbc
|
cd nbc
|
||||||
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||||
git config --global user.name = "${{ github.actor }}"
|
git config --global user.name = "${{ github.actor }}"
|
||||||
git commit -a -m "auto-bump nim-libp2p"
|
git commit --allow-empty -a -m "auto-bump nim-libp2p"
|
||||||
git branch -D nim-libp2p-auto-bump-${GITHUB_REF##*/} || true
|
git branch -D nim-libp2p-auto-bump-${GITHUB_REF##*/} || true
|
||||||
git switch -c nim-libp2p-auto-bump-${GITHUB_REF##*/}
|
git switch -c nim-libp2p-auto-bump-${GITHUB_REF##*/}
|
||||||
git push -f origin nim-libp2p-auto-bump-${GITHUB_REF##*/}
|
git push -f origin nim-libp2p-auto-bump-${GITHUB_REF##*/}
|
||||||
|
|
Loading…
Reference in New Issue