Skip to content

Commit 379840f

Browse files
Update devcontainer-freertos-nxp.yaml
Only get the version from the first line. Allows ability for the docker to have labels.
1 parent 31c6cd9 commit 379840f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/devcontainer-freertos-nxp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Get container version
3434
shell: pwsh
3535
run: |
36-
$dockerfileContent = Get-Content("${{ env.CONTAINER_VERSION_FILE }}")
36+
$dockerfileContent = Get-Content("${{ env.CONTAINER_VERSION_FILE }}") -First 1
3737
$dockerfileContent -match '(?<=\:)(?:[v]\d+.\d+)'
3838
$containerVersion = $Matches[0].ToString()
3939
echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append

0 commit comments

Comments
 (0)