Skip to content

Commit 5b89d4a

Browse files
authored
Merge pull request #3 from kernelkit/update-workflow
synx-infix: Change branch from latest to latest-infix
2 parents f37fde8 + 3fd6bee commit 5b89d4a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/sync-infix.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ jobs:
2222
git config --global user.name 'Wires bot'
2323
git config --global user.email '[email protected]'
2424
CHANGES=0
25-
if [ -z "$(git branch | grep latest)" ]; then
26-
if [ -n "$(git branch -r | grep latest)" ]; then
27-
git checkout latest
25+
if [ -z "$(git branch | grep latest-infix)" ]; then
26+
if [ -n "$(git branch -r | grep latest-infix)" ]; then
27+
git checkout latest-infix
2828
else
29-
git checkout -b latest
29+
git checkout -b latest-infix
3030
fi
3131
else
32-
if [ -n "$(git branch -r | grep latest)" ]; then
33-
git reset --hard origin/latest
32+
git checkout latest-infix
33+
if [ -n "$(git branch -r | grep latest-infix)" ]; then
34+
git reset --hard origin/latest-infix
3435
fi
3536
fi
3637
if [[ -n "$(git diff --exit-code origin/main)" ]]; then
@@ -47,7 +48,7 @@ jobs:
4748
4849
if [[ -n "$(git diff --exit-code infix)" ]]; then
4950
git add infix
50-
git commit infix -m "Step up infix"
51+
git commit infix -m "Bump Infix"
5152
CHANGES=1
5253
fi
5354
@@ -59,5 +60,5 @@ jobs:
5960
fi
6061
6162
if [ $CHANGES -eq 1 ]; then
62-
git push origin latest
63+
git push origin latest-infix
6364
fi

0 commit comments

Comments
 (0)