Skip to content

Commit 8cf11c2

Browse files
committed
run_id → run_number — run_id is a globally unique 64-bit integer (too large for Int32); run_number is a sequential counter per workflow starting at 1, always fits in Int32.
Backslashes → forward slashes — the runner is ubuntu-latest, so path separators in PowerShell must use / (Linux doesn't treat \ as a path separator).
1 parent 85ccbd7 commit 8cf11c2

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ jobs:
1515

1616
- name: Build PROD
1717
shell: pwsh
18-
run: ./build.ps1 -isProd $True -build ${{ github.run_id }}
18+
run: ./build.ps1 -isProd $True -build ${{ github.run_number }}
1919

2020
- name: Copy PROD artifacts
2121
shell: pwsh
2222
run: |
23-
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}\artifacts\prod"
23+
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}/artifacts/prod"
2424
Get-ChildItem -Path "${{ github.workspace }}" -Recurse -Filter "SQLPlayer*.vsix" |
25-
Copy-Item -Destination "${{ github.workspace }}\artifacts\prod"
25+
Copy-Item -Destination "${{ github.workspace }}/artifacts/prod"
2626
2727
- name: Publish Artifact prod
2828
uses: actions/upload-artifact@v4
2929
with:
3030
name: prod
31-
path: ${{ github.workspace }}\artifacts\prod
31+
path: ${{ github.workspace }}/artifacts/prod
3232

3333
- name: Build non-prod
3434
shell: pwsh
35-
run: ./build.ps1 -isProd $False -build ${{ github.run_id }}
35+
run: ./build.ps1 -isProd $False -build ${{ github.run_number }}
3636

3737
- name: Copy non-prod artifacts
3838
shell: pwsh
3939
run: |
40-
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}\artifacts\nonprod"
40+
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}/artifacts/nonprod"
4141
Get-ChildItem -Path "${{ github.workspace }}" -Recurse -Filter "Kamil-Nowinski*.vsix" |
42-
Copy-Item -Destination "${{ github.workspace }}\artifacts\nonprod"
42+
Copy-Item -Destination "${{ github.workspace }}/artifacts/nonprod"
4343
4444
- name: Publish Artifact nonprod
4545
uses: actions/upload-artifact@v4
4646
with:
4747
name: nonprod
48-
path: ${{ github.workspace }}\artifacts\nonprod
48+
path: ${{ github.workspace }}/artifacts/nonprod

0 commit comments

Comments
 (0)