Skip to content

Commit

Permalink
MBX-2726 Added trigger.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Akylbek Utekeshev committed Nov 8, 2023
1 parent d5eeef2 commit bc65159
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build PushOk when PR open.

on:
pull_request:
types: [opened, synchronize]
branches:
- 'feature/*'

jobs:
trigger:
runs-on: macos-13
steps:
- 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: develop
inputs: '{"branch": "${{ github.head_ref }}", "commits": "${{ env.commits }}"}'

0 comments on commit bc65159

Please sign in to comment.