12 lines
408 B
Plaintext
12 lines
408 B
Plaintext
|
#!/bin/bash
|
||
|
first_branch=$(head -n 1 supported-releases)
|
||
|
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||
|
next_branch=$(grep -A 1 $current_branch supported-releases | tail -n 1)
|
||
|
[[ "$next_branch" == "$current_branch" ]] && next_branch=$first_branch
|
||
|
|
||
|
git merger master && \
|
||
|
git push && \
|
||
|
fedpkg build --nowait && \
|
||
|
git checkout $next_branch && \
|
||
|
[[ "$next_branch" != "$first_branch" ]] && exec ./build-chain
|