-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Akylbek Utekeshev
committed
Nov 8, 2023
1 parent
9b5c6c6
commit d50ae22
Showing
1 changed file
with
19 additions
and
8 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 |
---|---|---|
@@ -1,18 +1,29 @@ | ||
name: Trigger build test | ||
name: Build PushOk when PR opened. | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'testing' | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
trigger: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Trigger build workflow in ios-app | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
token: ${{ secrets.CHILD_TOKEN }} | ||
workflow: connected_publish_workflow.yml | ||
repo: your-ios-app-repo | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get last 3 commit messages | ||
run: | | ||
commits=$(git log -3 --pretty=format:"%s") | ||
echo "commits=$commits" >> $GITHUB_ENV | ||
- name: Trigger build workflow in ios-app repo. | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
token: ${{ secrets.PAT_IOS_APP }} | ||
workflow: connected_publish_workflow.yml | ||
repo: mindbox-cloud/ios-app | ||
ref: ${{ github.ref }} | ||
inputs: '{"branch": "${{ github.ref_name }}", "commits": "${{ env.commits }}"}' |