Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 6 additions & 48 deletions .github/workflows/release-on-milestone-closed.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: "Automatic Releases"

# The five commands must stay steps of a single job: "release" runs
# `git checkout <release branch>`, which is what makes that branch available
# locally, and the following commands require it. Splitting them into separate
# jobs gives each one a fresh checkout of the default branch, so every release
# made from an older branch fails with "not a valid object name".

on:
milestone:
types:
Expand Down Expand Up @@ -27,18 +33,6 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

merge-up:
name: "Create Merge-Up Pull Request"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "release"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Create Merge-Up Pull Request"
uses: "laminas/automatic-releases@1.25.0"
with:
Expand All @@ -50,18 +44,6 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

switch:
name: "Create and/or Switch to new Release Branch"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "merge-up"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Create and/or Switch to new Release Branch"
uses: "laminas/automatic-releases@1.25.0"
with:
Expand All @@ -73,18 +55,6 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

bump:
name: "Bump Changelog Version On Originating Release Branch"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "switch"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Bump Changelog Version On Originating Release Branch"
uses: "laminas/automatic-releases@1.25.0"
with:
Expand All @@ -96,18 +66,6 @@ jobs:
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

milestones:
name: "Create new milestones"
runs-on: ubuntu-latest
if: ${{ always() }}
needs: "bump"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Create new milestones"
uses: "laminas/automatic-releases@1.25.0"
with:
Expand Down
Loading