We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 990e05a commit 2779419Copy full SHA for 2779419
.github/workflows/ship-it.yml
@@ -21,12 +21,17 @@ jobs:
21
git checkout master
22
23
- name: Log commits to be shipped
24
- run: git log --oneline master..next
+ id: commits-to-ship
25
+ run: |
26
+ git log --oneline master..next
27
+ echo "count=$(git log --oneline master..next | wc -l)" >> $GITHUB_OUTPUT
28
29
- name: Fast-forward master to next
30
+ if: steps.commits-to-ship.outputs.count != '0'
31
run: git merge --ff-only next
32
33
- name: Push updated master to origin
34
35
run: |
36
git push origin master
37
env:
0 commit comments