Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit 95b082c

Browse files
Merge pull request #74 from hmcts/fix-reponame
remove hmcts from repo name
2 parents 8b7ab9a + a38fc06 commit 95b082c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci-draft.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ jobs:
156156
PIPELINE_ID: 460 #cp-gh-artifact-to-acr
157157
ADO_PAT: ${{ secrets.HMCTS_ADO_PAT }}
158158
run: |
159+
repo_name=${GITHUB_REPOSITORY##*/}
159160
curl -X POST \
160161
-u ":${ADO_PAT}" \
161162
-H "Content-Type: application/json" \
@@ -170,7 +171,7 @@ jobs:
170171
},
171172
"templateParameters": {
172173
"GROUP_ID": "uk.gov.hmcts.cp",
173-
"ARTIFACT_ID": "'"${{ github.repository }}"'",
174-
"ARTIFACT_VERSION": "'"${{ needs.Artefact-Version.outputs.draft_version}}"'"
174+
"ARTIFACT_ID": "${repo_name}",
175+
"ARTIFACT_VERSION": "${{ needs.Artefact-Version.outputs.draft_version}}"
175176
}
176177
}'

.github/workflows/ci-released.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
PIPELINE_ID: 460 #cp-gh-artifact-to-acr
123123
ADO_PAT: ${{ secrets.HMCTS_ADO_PAT }}
124124
run: |
125+
repo_name=${GITHUB_REPOSITORY##*/}
125126
curl -X POST \
126127
-u ":${ADO_PAT}" \
127128
-H "Content-Type: application/json" \
@@ -136,7 +137,7 @@ jobs:
136137
},
137138
"templateParameters": {
138139
"GROUP_ID": "uk.gov.hmcts.cp",
139-
"ARTIFACT_ID": "'"${{ github.repository }}"'",
140-
"ARTIFACT_VERSION": "'"${{ needs.Artefact-Version.outputs.RELEASED_VERSION }}"'"
140+
"ARTIFACT_ID": "${repo_name}",
141+
"ARTIFACT_VERSION": "${{ needs.Artefact-Version.outputs.RELEASED_VERSION}}"
141142
}
142143
}'

0 commit comments

Comments
 (0)