Skip to content

Commit 1a8b408

Browse files
committed
Update Move-Item command in release-pipeline.yml
Modified the Move-Item command to include the -Force and -ErrorAction SilentlyContinue parameters. This allows the move operation to overwrite existing files without confirmation and suppresses any errors during the process.
1 parent 4dd2875 commit 1a8b408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-pipline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
run: |
104104
$source = Get-Item "${{ github.workspace }}/artifact_publish/${{ matrix.runtime }}/G4.Bots.Monitor*"
105105
$target = "${{ github.workspace }}/artifact_publish/${{ matrix.runtime }}/${{ env.FILE_NAME }}"
106-
Move-Item -Path $source.FullName -Destination $target
106+
Move-Item -Path $source.FullName -Destination $target -Force -ErrorAction SilentlyContinue
107107
108108
- name: Upload Artifact ${{ matrix.runtime }}/${{ env.FILE_NAME }}
109109
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)