File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,13 @@ jobs:
144144 if : inputs.artifact-name
145145 id : artifactname
146146 run : |
147- if test "false" = "${{ inputs.append-date-and-hash }}"; then
148- echo name=${{ inputs.artifact-name }} >> $GITHUB_OUTPUT
149- else
150- echo name=${{ inputs.artifact-name }}-$(date +%Y%m%d)-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
151- fi
147+ if (test "${{ inputs.append-date-and-hash }}" -eq "false") {
148+ "name=${{ inputs.artifact-name }}" | Out-File -Append $env:GITHUB_OUTPUT
149+ } else
150+ $date = Get-Date -Format "yyyMMdd"
151+ $hash = git rev-parse --short HEAD
152+ "name=${{ inputs.artifact-name}}-$date-$hash" | Out-File -Append $env:GITHUB_OUTPUT
153+ }
152154 - name : Prep artifact
153155 if : inputs.artifact-name
154156 run : |
You can’t perform that action at this time.
0 commit comments