Skip to content

Commit 82dd397

Browse files
committed
pkg-release: include run_attempt in S3 proposed upload path
Use `<run_id>-<run_attempt>` as the S3 key instead of `<run_id>` alone. Without run_attempt, re-runs of the same workflow overwrite the previous attempt's artifacts at the same S3 path. S3 layout after this change: qualcomm-linux/pkg/proposed/<run_id>-<run_attempt>/ provenance_<suite>.json debs/*.deb Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
1 parent 920b5e7 commit 82dd397

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/pkg-release-reusable-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ jobs:
670670
with:
671671
s3_bucket: qli-prd-lecore-gh-artifacts
672672
path: s3-provenance
673-
destination: qualcomm-linux/pkg/proposed/${{ github.run_id }}/
673+
destination: qualcomm-linux/pkg/proposed/${{ github.run_id }}-${{ github.run_attempt }}/
674674

675675
upload-debs-to-s3:
676676
name: Upload Debs to S3 (Ubuntu)
@@ -707,4 +707,4 @@ jobs:
707707
with:
708708
s3_bucket: qli-prd-lecore-gh-artifacts
709709
path: s3-proposed
710-
destination: qualcomm-linux/pkg/proposed/${{ github.run_id }}/
710+
destination: qualcomm-linux/pkg/proposed/${{ github.run_id }}-${{ github.run_attempt }}/

0 commit comments

Comments
 (0)