From 6bb5d4412b1129cd38391ac7900e4f583472842c Mon Sep 17 00:00:00 2001 From: Akylbek Utekeshev Date: Mon, 13 May 2024 17:30:36 +0500 Subject: [PATCH 1/4] MBX-111 --- .github/workflows/publish.yml | 43 ++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8dc84d89..38b27531 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,29 +34,30 @@ jobs: run: | set -eo pipefail pod lib lint --allow-warnings - exit 1 + exit 0 + env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }} - # - name: Post to a Slack channel - # id: slack - # uses: slackapi/slack-github-action@v1.26.0 - # with: - # channel-id: 'C06RXV161RA' - # payload: | - # { - # "text": "iOS - MindboxLogger release", - # "blocks": [ - # { - # "type": "header", - # "text": { - # "type": "plain_text", - # "text": "🚀 MindboxLogger tested." - # } - # } - # ] - # } - # env: - # SLACK_BOT_TOKEN: ${{ secrets.SLACK_MOBILE_NOTIFIER_TOKEN }} + - name: Post to a Slack channel + id: slack + uses: slackapi/slack-github-action@v1.26.0 + with: + channel-id: 'C06RXV161RA' + payload: | + { + "text": "iOS - MindboxLogger release", + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "🚀 MindboxLogger tested." + } + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_MOBILE_NOTIFIER_TOKEN }} publish: needs: [logger-publish] From b52c29ee904aa6bb05558528134d59310ea2d969 Mon Sep 17 00:00:00 2001 From: Akylbek Utekeshev Date: Mon, 20 May 2024 16:18:48 +0500 Subject: [PATCH 2/4] MBX-0000 TEST --- .github/workflows/build.yml | 33 ++++++++------------------------- .github/workflows/publish.yml | 2 +- 2 files changed, 9 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36c600b0..5b47fd3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,33 +1,16 @@ -name: SDK CI +name: Run Script on Merge to Develop on: - push: + pull_request: + types: [closed] branches: - - '**' - - '!master' - - '!release-*' - paths-ignore: - - '**.md' - tags-ignore: - - '**' + - feature/MBX-3346-MindboxLoggerCI + jobs: - build: + run-script-on-merge: runs-on: macos-14 timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: latest-stable - - name: Update bundler - run: gem install bundler + steps: - name: Install bundler dependencies - run: bundle install - - name: Install yeetd - run: | - wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg - sudo installer -pkg yeetd-normal.pkg -target / - yeetd & - - name: Run unit tests - run: bundle exec fastlane unitTestLane + run: echo "Pull request was merged." \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 38b27531..247b5c4e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,7 @@ on: branches: - 'master' - 'support/*' - - 'feature/MBX-3346-MindboxLoggerCI' + # - 'feature/MBX-3346-MindboxLoggerCI' tags-ignore: - '**' From 1915fba7ab087404127ecabd33f6e35bd1cd6665 Mon Sep 17 00:00:00 2001 From: Akylbek Utekeshev Date: Mon, 20 May 2024 16:26:19 +0500 Subject: [PATCH 3/4] 1 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b47fd3c..8a898e13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,4 +13,4 @@ jobs: steps: - name: Install bundler dependencies - run: echo "Pull request was merged." \ No newline at end of file + run: echo "Pull request was merged." \ No newline at end of file From 5ae0828a19184a15ea6690d69e6446365d2fcb3b Mon Sep 17 00:00:00 2001 From: Akylbek Utekeshev Date: Mon, 20 May 2024 16:34:34 +0500 Subject: [PATCH 4/4] asd --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a898e13..d93dbdb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Run Script on Merge to Develop +name: Run Script on Merge to Develop. on: pull_request: @@ -13,4 +13,4 @@ jobs: steps: - name: Install bundler dependencies - run: echo "Pull request was merged." \ No newline at end of file + run: echo "Pull request was merged." \ No newline at end of file