Skip to content

Commit

Permalink
MBX-0000 ASD
Browse files Browse the repository at this point in the history
  • Loading branch information
Akylbek Utekeshev committed Nov 8, 2023
1 parent 9b5c6c6 commit d50ae22
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/trigger.yml
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 }}"}'

0 comments on commit d50ae22

Please sign in to comment.