Skip to content

Commit f099aba

Browse files
committed
[NRL-863] Add short commit ref to versions in env config
1 parent 87abf76 commit f099aba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/persistent-environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ jobs:
234234

235235
- name: Update environment config version
236236
run: |
237-
deployed_version="${{ inputs.branch_name }}"
237+
short_commit_ref="$(echo ${{ github.sha }} | cut -c1-8)"
238+
deployed_version="${{ inputs.branch_name }}@${short_commit_ref}"
238239
poetry run python ./scripts/set_env_config.py inactive-version ${deployed_version} ${{ inputs.environment }}
239240
240241
- name: Smoke Test

0 commit comments

Comments
 (0)