Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/sync-infix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ jobs:
git config --global user.name 'Wires bot'
git config --global user.email 'noreply@wires.se'
CHANGES=0
if [ -z "$(git branch | grep latest)" ]; then
if [ -n "$(git branch -r | grep latest)" ]; then
git checkout latest
if [ -z "$(git branch | grep latest-infix)" ]; then
if [ -n "$(git branch -r | grep latest-infix)" ]; then
git checkout latest-infix
else
git checkout -b latest
git checkout -b latest-infix
fi
else
if [ -n "$(git branch -r | grep latest)" ]; then
git reset --hard origin/latest
git checkout latest-infix
if [ -n "$(git branch -r | grep latest-infix)" ]; then
git reset --hard origin/latest-infix
fi
fi
if [[ -n "$(git diff --exit-code origin/main)" ]]; then
Expand All @@ -47,7 +48,7 @@ jobs:

if [[ -n "$(git diff --exit-code infix)" ]]; then
git add infix
git commit infix -m "Step up infix"
git commit infix -m "Bump Infix"
CHANGES=1
fi

Expand All @@ -59,5 +60,5 @@ jobs:
fi

if [ $CHANGES -eq 1 ]; then
git push origin latest
git push origin latest-infix
fi