Skip to content

Commit

Permalink
MBX-2726 SDK Version provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Akylbek Utekeshev committed Nov 10, 2023
1 parent 53d59ec commit 40ea728
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/trigger.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
push:
branches:
- 'feature/*'
pull_request_review:
types: [submitted]
branches:
- 'feature/*'
# pull_request_review:
# types: [submitted]
# branches:
# - 'feature/*'

jobs:
trigger:
Expand All @@ -21,18 +21,17 @@ jobs:
commits=$(git log -3 --pretty=format:"%s")
echo "commits=$commits" >> $GITHUB_ENV
- name: Get Mindbox SDK Version
run: |
version=$(grep -Eo "spec.version\s*=\s*'\d+\.\d+\.\d+'" Mindbox.podspec | grep -Eo '\d+\.\d+\.\d+')
echo "Mindbox SDK Version: $version"
# - 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.
if: github.event.review.state == 'approved'
# if: github.event.review.state == 'approved'
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 }}", "sdkVersion": "${{ env.sdkVersion }}"}'
inputs: '{"branch": "${{ github.head_ref }}", "commits": "${{ env.commits }}", "sdkVersion": "1.0.0"}'

0 comments on commit 40ea728

Please sign in to comment.