diff --git a/.github/workflows/trigger.yml b/.github/workflows/trigger.yml index a1ae9cf1..30e28df5 100644 --- a/.github/workflows/trigger.yml +++ b/.github/workflows/trigger.yml @@ -1,4 +1,4 @@ -name: Trigger build test +name: Trigger build test4 on: push: @@ -10,9 +10,19 @@ jobs: 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@v2 + + - 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 + 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 }}"}'