Skip to content

Commit 8d2e6d8

Browse files
release wf: modify the s3 bucket path and add version
Instead of ${WORKFLOW_BUILD_ID}/${WORKFLOW_RUN_ID}, change to ${WORKFLOW_BUILD_ID}-${WORKFLOW_RUN_ID}. - vs / Add version field in the provenance file Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
1 parent e6ba7c6 commit 8d2e6d8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ jobs:
153153
MAIN_PKGS_JSON=$(printf '%s\n' "$MAIN_PKGS" | jq -c -R -s 'split("\n") | map(select(length>0))')
154154
DEV_PKGS_JSON=$(printf '%s\n' "$DEV_PKGS" | jq -c -R -s 'split("\n") | map(select(length>0))')
155155
156+
#version: The complete version string for this release (e.g. 1.2.3-1)
157+
156158
#src_repo : The upstream source repository name in github format (user/repo)
157159
#src_repo_tag : The tag in the upstream source repository that was used in the last promotion (e.g. v1.2.3)
158160
#src_repo_commit : The commit hash in the upstream source repository that corresponds to the src_repo_tag
@@ -165,6 +167,8 @@ jobs:
165167
cat > ../build/provenance.json << EOF
166168
{
167169
$SOURCE : {
170+
"version": "${{ steps.changelog.outputs.version }}",
171+
168172
"src_repo": "${{vars.UPSTREAM_REPO_GITHUB_NAME}}",
169173
"src_repo_tag": "$NEAREST_UPSTREAM_TAG",
170174
"src_repo_commit": "$NEAREST_UPSTREAM_COMMIT",
@@ -256,7 +260,7 @@ jobs:
256260
WORKFLOW_BUILD_ID="${{ github.run_id }}"
257261
WORKFLOW_RUN_ID="${{ github.run_attempt }}"
258262
259-
S3_BUCKET_PATH="${OWNER_NAME}/pkg/${CATEGORY_FOLDER}/${WORKFLOW_BUILD_ID}/${WORKFLOW_RUN_ID}/${REPO_NAME}/${SUITE_NAME}/${VERSION_NAME}/"
263+
S3_BUCKET_PATH="${OWNER_NAME}/pkg/${CATEGORY_FOLDER}/${WORKFLOW_BUILD_ID}-${WORKFLOW_RUN_ID}/${REPO_NAME}/${SUITE_NAME}/${VERSION_NAME}/"
260264
261265
echo "ORG_NAME=${OWNER_NAME}"
262266
echo "REPO_NAME=${REPO_NAME}"

0 commit comments

Comments
 (0)