Skip to content

Commit c95b376

Browse files
authored
Split only when tags are pushed (#451)
* Split only when tags are pushed * Continue job even if the other one failed
1 parent b5b0c57 commit c95b376

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/gitsplit.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: gitsplit
22
on:
33
push:
4-
branches:
5-
- "*.x"
64
tags:
75
- '*'
86

.github/workflows/release-on-milestone-closed.yml

+29-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
release:
12-
name: "GIT tag, release & create merge-up PR"
12+
name: "Release"
1313
runs-on: ubuntu-latest
1414

1515
steps:
@@ -27,6 +27,13 @@ jobs:
2727
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
2828
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
2929

30+
merge-up:
31+
name: "Create Merge-Up Pull Request"
32+
runs-on: ubuntu-latest
33+
if: ${{ always() }}
34+
needs: "release"
35+
36+
steps:
3037
- name: "Create Merge-Up Pull Request"
3138
uses: "laminas/automatic-releases@1.24.0"
3239
with:
@@ -38,6 +45,13 @@ jobs:
3845
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
3946
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
4047

48+
switch:
49+
name: "Create and/or Switch to new Release Branch"
50+
runs-on: ubuntu-latest
51+
if: ${{ always() }}
52+
needs: "merge-up"
53+
54+
steps:
4155
- name: "Create and/or Switch to new Release Branch"
4256
uses: "laminas/automatic-releases@1.24.0"
4357
with:
@@ -49,6 +63,13 @@ jobs:
4963
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
5064
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
5165

66+
bump:
67+
name: "Bump Changelog Version On Originating Release Branch"
68+
runs-on: ubuntu-latest
69+
if: ${{ always() }}
70+
needs: "switch"
71+
72+
steps:
5273
- name: "Bump Changelog Version On Originating Release Branch"
5374
uses: "laminas/automatic-releases@1.24.0"
5475
with:
@@ -60,6 +81,13 @@ jobs:
6081
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
6182
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
6283

84+
milestones:
85+
name: "Create new milestones"
86+
runs-on: ubuntu-latest
87+
if: ${{ always() }}
88+
needs: "bump"
89+
90+
steps:
6391
- name: "Create new milestones"
6492
uses: "laminas/automatic-releases@1.24.0"
6593
with:

0 commit comments

Comments
 (0)