-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Automate the merge of the release branches (#3350)
- Loading branch information
1 parent
37d5d3b
commit edbc5bd
Showing
4 changed files
with
62 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "Merge release" | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
merge-comment: | ||
name: Merge release to main | ||
runs-on: macos-14 | ||
if: github.event.issue.pull_request && github.event.issue.state == 'open' && github.event.comment.body == '/merge release' | ||
steps: | ||
- name: Connect iOS Bot | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: ./.github/actions/ruby-cache | ||
|
||
- name: Merge | ||
run: bundle exec fastlane merge_release_to_main author:"${{ github.event.comment.user.login }}" --verbose | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} | ||
GITHUB_PR_NUM: ${{ github.event.issue.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,18 @@ jobs: | |
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | ||
|
||
- uses: actions/[email protected] | ||
|
||
- name: Extract version from branch name (for release branches) | ||
if: startsWith(github.event.pull_request.head.ref, 'release/') | ||
run: | | ||
BRANCH_NAME="${{ github.event.pull_request.head.ref }}" | ||
VERSION=${BRANCH_NAME#release/} | ||
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV | ||
- uses: ./.github/actions/ruby-cache | ||
|
||
- name: "Fastlane - Publish Release" | ||
if: startsWith(github.event.pull_request.head.ref, 'release/') | ||
env: | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters