Skip to content

Commit 1da4b53

Browse files
committed
chore: Fix Android app baseline profiles build artifact conflict
1 parent 1df442f commit 1da4b53

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/actions/build_android_baseline_profiles/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ inputs:
33
build-flavor:
44
description: 'Build Flavor'
55
required: true
6+
artifact-prefix:
7+
description: 'Artifact Tag'
8+
required: true
9+
default: ""
610
runs:
711
using: "composite"
812
steps:
@@ -25,15 +29,15 @@ runs:
2529
uses: actions/upload-artifact@v5
2630
if: always()
2731
with:
28-
name: baselineprofile-screen-recordings
32+
name: ${{ inputs.artifact-prefix }}baselineprofile-screen-recordings
2933
path: |
3034
artifactsScreenRecording/
3135
retention-days: 7
3236
- name: 'Upload baseline profile logs'
3337
uses: actions/upload-artifact@v5
3438
if: always()
3539
with:
36-
name: baselineprofile-logs
40+
name: ${{ inputs.artifact-prefix }}baselineprofile-logs
3741
path: |
3842
androidBenchmark/build/outputs/androidTest-results/
3943
retention-days: 7

.github/workflows/new_tag_release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ jobs:
376376
- uses: ./.github/actions/build_android_baseline_profiles
377377
with:
378378
build-flavor: ${{ matrix.config.flavor }}
379+
artifact-prefix: android-${{ matrix.config.flavor }}-
379380
- name: "Build"
380381
run: ./gradlew :androidApp:${{ matrix.config.build-type }}${{ matrix.config.flavor }}Release
381382
- name: 'Upload .apk'

0 commit comments

Comments
 (0)