Feature/mbx 3747 ab tests unit tests #208
Workflow file for this run
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
name: Build PushOk when PR merged | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- 'feature/*' | |
- 'develop' | |
jobs: | |
trigger: | |
runs-on: macos-latest | |
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: Get Mindbox SDK Version | |
run: | | |
sdkVersion=$(grep 'static let sdkVersion' SDKVersionProvider/SDKVersionProvider.swift | awk -F '"' '{print $2}') | |
echo "sdkVersion=$sdkVersion" >> $GITHUB_ENV | |
- name: Trigger build workflow in ios-app repo | |
uses: benc-uk/workflow-dispatch@v1 | |
if: github.event.pull_request.merged == true | |
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 }}", "sdkVersion": "${{ env.sdkVersion }}"}' |