From 6cb2c19a155ffe70798b337fb693af5e756cb7bb Mon Sep 17 00:00:00 2001 From: nelsitoPuglisi Date: Fri, 28 Jun 2024 11:28:08 -0300 Subject: [PATCH] baseline workflow uses proper version --- .github/workflows/generate_baseline_profile.yml | 14 ++++++++++++++ .github/workflows/pre-release-workflow.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_baseline_profile.yml b/.github/workflows/generate_baseline_profile.yml index bf5e93b8bc..cce327ba92 100644 --- a/.github/workflows/generate_baseline_profile.yml +++ b/.github/workflows/generate_baseline_profile.yml @@ -2,7 +2,15 @@ name: Generate Baseline Profile on: workflow_dispatch: + inputs: + sdk_version: + description: 'SDK version' + required: false workflow_call: + inputs: + sdk_version: + required: false + type: string secrets: token: required: true @@ -67,6 +75,12 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v3 + - name: Set Version + if: ${{ github.event.inputs.sdk_version != "" }} + run: | + cd android-sdk-benchmark + sed -i -r "s#swazzler_version = ([^\']+)#swazzler_version = ${{ github.event.inputs.next_version }}#" gradle.properties + - name: Generate Baseline Profile run: | cd android-sdk-benchmark diff --git a/.github/workflows/pre-release-workflow.yml b/.github/workflows/pre-release-workflow.yml index 4bc0641fd4..161c226b76 100644 --- a/.github/workflows/pre-release-workflow.yml +++ b/.github/workflows/pre-release-workflow.yml @@ -21,7 +21,7 @@ jobs: release-candidate: name: Create Release Candidate - needs: release-branch + needs: baseline-profile uses: ./.github/workflows/build-rc-workflow.yml secrets: inherit with: