From eae13a192c097f3c4c5ba5ef5712a395e6fe0be0 Mon Sep 17 00:00:00 2001 From: Long Vu Date: Tue, 23 Apr 2024 08:50:14 +0700 Subject: [PATCH] Update ssh key --- .github/workflows/auto_test_android.yaml | 5 ++++- .github/workflows/auto_test_ios.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto_test_android.yaml b/.github/workflows/auto_test_android.yaml index e6f860d0e..1583f7b88 100644 --- a/.github/workflows/auto_test_android.yaml +++ b/.github/workflows/auto_test_android.yaml @@ -13,6 +13,9 @@ jobs: # Checkout code and get packages. - name: Checkout code uses: actions/checkout@v3 + - uses: webfactory/ssh-agent@v0.5.4 + with: + ssh-private-key: ${{ secrets.SSH_ASSETS_KEY }} # Set build number - name: Set env run: | @@ -82,7 +85,7 @@ jobs: cat .env - name: Submoudles update - run: git submodule update --init --recursive + run: git -c submodule update --init --recursive - run: flutter pub cache repair - run: flutter pub get # Build app diff --git a/.github/workflows/auto_test_ios.yaml b/.github/workflows/auto_test_ios.yaml index 1f14df577..cb8d9fb08 100644 --- a/.github/workflows/auto_test_ios.yaml +++ b/.github/workflows/auto_test_ios.yaml @@ -20,6 +20,9 @@ jobs: echo "FLUTTER_VERSION_CODE=10" >> $GITHUB_ENV echo "BRANCH_KEY=${{ secrets.BRANCH_KEY }}" >> $GITHUB_ENV echo "BRANCH_KEY_TEST=${{ secrets.BRANCH_KEY_TEST }}" >> $GITHUB_ENV + - uses: webfactory/ssh-agent@v0.5.4 + with: + ssh-private-key: ${{ secrets.SSH_ASSETS_KEY }} - name: Create env file run: | touch .env @@ -30,7 +33,7 @@ jobs: cat .env - name: Submoudles update - run: git submodule update --init --recursive + run: git -c submodule update --init --recursive - run: flutter pub cache repair - run: flutter pub get # Build app