We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37461b3 commit 990e05aCopy full SHA for 990e05a
.github/workflows/ship-it.yml
@@ -15,20 +15,16 @@ jobs:
15
fetch-depth: 0
16
ref: next
17
18
- - name: Check master can fast-forward to next
+ - name: Checkout master branch
19
run: |
20
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: |
30
git checkout master
31
- git reset --hard next
+
+ - name: Log commits to be shipped
+ run: git log --oneline master..next
+ - name: Fast-forward master to next
+ run: git merge --ff-only next
32
33
- name: Push updated master to origin
34
0 commit comments