diff --git a/.github/workflows/trigger.yml b/.github/workflows/trigger.yml new file mode 100644 index 00000000..cd99a536 --- /dev/null +++ b/.github/workflows/trigger.yml @@ -0,0 +1,30 @@ +name: Build PushOk when PR open. + +on: + push: + branches: + - 'testing/*' + - 'proverka/*' + pull_request: + types: [opened, reopened, synchronize] + +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: testing + inputs: '{"branch": "${{ github.head_ref }}", "commits": "${{ env.commits }}"}'