Skip to content

Commit 990e05a

Browse files
committed
chore: Simplify ship-it workflow
1 parent 37461b3 commit 990e05a

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/ship-it.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,16 @@ jobs:
1515
fetch-depth: 0
1616
ref: next
1717

18-
- name: Check master can fast-forward to next
18+
- name: Checkout master branch
1919
run: |
2020
git fetch origin master
21-
if ! git merge-base --is-ancestor master next; then
22-
echo "::error::master cannot be fast-forwarded to next. Aborting."
23-
exit 1
24-
fi
25-
- name: Log commits to ship
26-
run: git log master..next --oneline
27-
28-
- name: Move master to next branch
29-
run: |
3021
git checkout master
31-
git reset --hard next
22+
23+
- name: Log commits to be shipped
24+
run: git log --oneline master..next
25+
26+
- name: Fast-forward master to next
27+
run: git merge --ff-only next
3228

3329
- name: Push updated master to origin
3430
run: |

0 commit comments

Comments
 (0)