Skip to content

Commit fcbe450

Browse files
committed
chore(ci): update prepare for next release
1 parent 4dafe3b commit fcbe450

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/prepare_dev_for_next_release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Prepare dev branch for next release
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
workflow_run:
5+
workflows: ['Release Package']
6+
types: [completed]
77

88
permissions:
99
contents: write
@@ -12,7 +12,7 @@ jobs:
1212
update-pods:
1313
name: Update Podfile.lock after release
1414
runs-on: macos-latest
15-
if: ${{ !contains(github.ref_name, '-') }}
15+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && startsWith(github.event.workflow_run.head_commit.message, 'release:') }}
1616
env:
1717
XCODE_VERSION: latest-stable
1818

@@ -50,7 +50,6 @@ jobs:
5050
name: Merge main into dev
5151
runs-on: ubuntu-latest
5252
needs: update-pods
53-
if: ${{ !contains(github.ref_name, '-') }}
5453
steps:
5554
- name: Checkout
5655
uses: actions/checkout@v5.0.0

0 commit comments

Comments
 (0)