From ce52e6de2afafaf395341c77e3c258e606a4fcd3 Mon Sep 17 00:00:00 2001 From: nelsitoPuglisi Date: Fri, 28 Jun 2024 10:58:53 -0300 Subject: [PATCH] new workflow to update snapshot in test apps --- .github/workflows/rc-update-test-apps.yml | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/rc-update-test-apps.yml diff --git a/.github/workflows/rc-update-test-apps.yml b/.github/workflows/rc-update-test-apps.yml new file mode 100644 index 0000000000..2dc87177f0 --- /dev/null +++ b/.github/workflows/rc-update-test-apps.yml @@ -0,0 +1,43 @@ +name: Pre-Release - Update Test Apps with new Snapshot + +on: + workflow_dispatch: + inputs: + next_version: + description: 'Next version. Specify , e.g. 6.4 (Do NOT include -SNAPSHOT, will be added automatically)' + required: true + workflow_call: + inputs: + next_version: + required: true + type: string + +jobs: + update-apps: + name: Update Apps Repo + strategy: + matrix: + repo: [ embrace-io/android-sdk-benchmark, embrace-io/android-test-suite ] + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - name: Configure git + run: | + git config --global user.name 'embrace-ci[bot]' + git config --global user.email 'embrace-ci@users.noreply.github.com' + git config --global url."https://${{ secrets.CD_GITHUB_USER }}:${{ secrets.CD_GITHUB_TOKEN }}@github.com".insteadOf "https://github.com" + + - name: Checkout App + uses: actions/checkout@v4 + with: + repository: ${{ matrix.repo }} + ref: master + token: ${{ secrets.CD_GITHUB_TOKEN }} + + - name: Set next SDK version + run: | + git checkout master + sed -i -r "s#swazzler_version = ([^\']+)#swazzler_version = ${{ github.event.inputs.next_version }}.0-SNAPSHOT#" gradle.properties + git add gradle.properties + git commit -m "CI/CD: set next version: ${{ github.event.inputs.next_version }}.0-SNAPSHOT" + git push \ No newline at end of file