Skip to content

Commit

Permalink
Added capabilities to pluginQA
Browse files Browse the repository at this point in the history
  • Loading branch information
al-af committed May 15, 2024
1 parent eaf16e0 commit 922e73f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pluginQA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,33 @@ jobs:
- name: Extract version from pubspec.yaml
run: |
VERSION=$(grep 'version:' pubspec.yaml | sed 's/version: //')
echo "PACKAGE_VERSION=$VERSION" $GITHUB_ENV
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
shell: bash

- name: Extract iOS SDK version from podspec
run: |
cd ios
ios_sdk_version=$(grep "s.ios.dependency 'AppsFlyerFramework'" appsflyer_sdk.podspec | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
echo "IOS_SDK_VERSION=$ios_sdk_version" >> $GITHUB_ENV
IOS_SDK_VERSION=$(grep "s.ios.dependency 'AppsFlyerFramework'" appsflyer_sdk.podspec | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
echo "IOS_SDK_VERSION=$IOS_SDK_VERSION" >> $GITHUB_ENV
shell: bash

- name: Extract Android SDK version
run: |
cd android
android_sdk_version=$(cat build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
echo "ANDROID_SDK_VERSION=android_sdk_version" $GITHUB_ENV
ANDROID_SDK_VERSION=$(cat build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
echo "ANDROID_SDK_VERSION=$ANDROID_SDK_VERSION" >> $GITHUB_ENV
shell: bash

- name: Notify with SLack
uses: slackapi/[email protected]
with:
payload: |
{
"version": "${{ env.VERSION }}",
"version": "${{ env.PACKAGE_VERSION }}",
"branch" : "${{ github.ref }}",
"github-link" : "https://github.com/AppsFlyerSDK/appsflyer-flutter-plugin",
"iOS-version": "${{ env.ios_sdk_version }}",
"android-version": "${{ env.android_sdk_version }}"
"iOS-version": "${{ env.IOS_SDK_VERSION }}",
"android-version": "${{ env.ANDROID_SDK_VERSION }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }}

0 comments on commit 922e73f

Please sign in to comment.