Skip to content

Commit 3dcf9a2

Browse files
authored
GitHub: Mass-update workflow dependencies (#18356)
Signed-off-by: A-Loot <105282948+A-Loot@users.noreply.github.com>
1 parent ea1ea6f commit 3dcf9a2

6 files changed

Lines changed: 59 additions & 59 deletions

File tree

.github/workflows/cd-sideload-preview.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ jobs:
3333
WORKING_DIR: '${{ github.workspace }}' # D:\a\Files\Files\
3434
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
3535
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages\'
36-
APP_PROJECT_PATH: 'src\Files.App\Files.App.csproj'
36+
APP_PROJECT_PATH: 'src\Files.App\Files.App.csproj'
3737
PACKAGE_MANIFEST_PATH: 'src\Files.App\Package.appxmanifest'
3838
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3939
TEST_PROJECT_PATH: 'tests\Files.InteractionTests\Files.InteractionTests.csproj'
4040
APP_INSTALLER_SIDELOAD_URL: 'https://cdn.files.community/files/preview/'
4141

4242
steps:
4343
- name: Checkout the repository
44-
uses: actions/checkout@v4
44+
uses: actions/checkout@v6
4545
- name: Setup MSBuild
46-
uses: microsoft/setup-msbuild@v2
46+
uses: microsoft/setup-msbuild@v3
4747
- name: Setup NuGet
48-
uses: NuGet/setup-nuget@v2
48+
uses: NuGet/setup-nuget@v3
4949
- name: Setup .NET
50-
uses: actions/setup-dotnet@v4
50+
uses: actions/setup-dotnet@v5
5151
with:
5252
global-json-file: global.json
5353

@@ -95,7 +95,7 @@ jobs:
9595
-v:quiet
9696
9797
- name: Sign launcher EXE with Azure Trusted Signing
98-
uses: azure/trusted-signing-action@v0.4.0
98+
uses: Azure/artifact-signing-action@v1
9999
with:
100100
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
101101
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -142,7 +142,7 @@ jobs:
142142
run: find $ARTIFACTS_STAGING_DIR -empty -delete
143143

144144
- name: Sign Files with Azure Trusted Signing
145-
uses: azure/trusted-signing-action@v0.4.0
145+
uses: Azure/artifact-signing-action@v1
146146
with:
147147
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
148148
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -169,7 +169,7 @@ jobs:
169169
destination-dir: ./files/preview
170170

171171
- name: Upload the packages to GitHub Actions
172-
uses: actions/upload-artifact@v4
172+
uses: actions/upload-artifact@v7
173173
with:
174174
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.PLATFORM }})'
175175
path: ${{ env.ARTIFACTS_STAGING_DIR }}

.github/workflows/cd-sideload-stable.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ jobs:
3333
WORKING_DIR: '${{ github.workspace }}' # D:\a\Files\Files\
3434
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
3535
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages\'
36-
APP_PROJECT_PATH: 'src\Files.App\Files.App.csproj'
36+
APP_PROJECT_PATH: 'src\Files.App\Files.App.csproj'
3737
PACKAGE_MANIFEST_PATH: 'src\Files.App\Package.appxmanifest'
3838
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3939
TEST_PROJECT_PATH: 'tests\Files.InteractionTests\Files.InteractionTests.csproj'
4040
APP_INSTALLER_SIDELOAD_URL: 'https://cdn.files.community/files/stable/'
4141

4242
steps:
4343
- name: Checkout the repository
44-
uses: actions/checkout@v4
44+
uses: actions/checkout@v6
4545
- name: Setup MSBuild
46-
uses: microsoft/setup-msbuild@v2
46+
uses: microsoft/setup-msbuild@v3
4747
- name: Setup NuGet
48-
uses: NuGet/setup-nuget@v2
48+
uses: NuGet/setup-nuget@v3
4949
- name: Setup .NET
50-
uses: actions/setup-dotnet@v4
50+
uses: actions/setup-dotnet@v5
5151
with:
5252
global-json-file: global.json
5353

@@ -67,7 +67,7 @@ jobs:
6767
SECRET_BINGMAPS_KEY: ${{ secrets.BING_MAPS_SECRET }}
6868
SECRET_SENTRY: ${{ secrets.SENTRY_SECRET }}
6969
SECRET_GITHUB_OAUTH_CLIENT_ID: ${{ secrets.GH_OAUTH_CLIENT_ID }}
70-
70+
7171
- name: Restore Files
7272
shell: pwsh
7373
run: |
@@ -84,7 +84,7 @@ jobs:
8484
nuget restore "$env:LAUNCHER_PROJECT_PATH" `
8585
-SolutionDirectory "$env:WORKING_DIR" `
8686
-Verbosity detailed
87-
87+
8888
- name: Build launcher project
8989
shell: pwsh
9090
run: |
@@ -95,7 +95,7 @@ jobs:
9595
-v:quiet
9696
9797
- name: Sign launcher EXE with Azure Trusted Signing
98-
uses: azure/trusted-signing-action@v0.4.0
98+
uses: Azure/artifact-signing-action@v1
9999
with:
100100
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
101101
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -142,7 +142,7 @@ jobs:
142142
run: find $ARTIFACTS_STAGING_DIR -empty -delete
143143

144144
- name: Sign Files with Azure Trusted Signing
145-
uses: azure/trusted-signing-action@v0.4.0
145+
uses: Azure/artifact-signing-action@v1
146146
with:
147147
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
148148
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -167,9 +167,9 @@ jobs:
167167
r2-bucket: ${{ secrets.R2_BUCKET }}
168168
source-dir: ${{ env.APPX_PACKAGE_DIR }}
169169
destination-dir: ./files/stable
170-
170+
171171
- name: Upload the packages to GitHub Actions
172-
uses: actions/upload-artifact@v4
172+
uses: actions/upload-artifact@v7
173173
with:
174174
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.PLATFORM }})'
175175
path: ${{ env.ARTIFACTS_STAGING_DIR }}

.github/workflows/cd-store-preview.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
WORKING_DIR: '${{ github.workspace }}' # D:\a\Files\Files\
3333
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
3434
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages\'
35-
APP_PROJECT_PATH: '${{ github.workspace }}\src\Files.App\Files.App.csproj'
35+
APP_PROJECT_PATH: '${{ github.workspace }}\src\Files.App\Files.App.csproj'
3636
PACKAGE_MANIFEST_PATH: '${{ github.workspace }}\src\Files.App\Package.appxmanifest'
3737
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3838

3939
steps:
4040
- name: Checkout the repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v6
4242
- name: Setup MSBuild
43-
uses: microsoft/setup-msbuild@v2
43+
uses: microsoft/setup-msbuild@v3
4444
- name: Setup NuGet
45-
uses: NuGet/setup-nuget@v2
45+
uses: NuGet/setup-nuget@v3
4646
- name: Setup .NET
47-
uses: actions/setup-dotnet@v4
47+
uses: actions/setup-dotnet@v5
4848
with:
4949
global-json-file: global.json
5050

@@ -64,7 +64,7 @@ jobs:
6464
SECRET_BINGMAPS_KEY: ${{ secrets.BING_MAPS_SECRET }}
6565
SECRET_SENTRY: ${{ secrets.SENTRY_SECRET }}
6666
SECRET_GITHUB_OAUTH_CLIENT_ID: ${{ secrets.GH_OAUTH_CLIENT_ID }}
67-
67+
6868
- name: Restore Files
6969
shell: pwsh
7070
run: |
@@ -81,7 +81,7 @@ jobs:
8181
nuget restore "$env:LAUNCHER_PROJECT_PATH" `
8282
-SolutionDirectory "$env:WORKING_DIR" `
8383
-Verbosity detailed
84-
84+
8585
- name: Build launcher project
8686
shell: pwsh
8787
run: |
@@ -92,7 +92,7 @@ jobs:
9292
-v:quiet
9393
9494
- name: Sign launcher EXE with Azure Trusted Signing
95-
uses: azure/trusted-signing-action@v0.4.0
95+
uses: Azure/artifact-signing-action@v1
9696
with:
9797
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
9898
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -135,9 +135,9 @@ jobs:
135135
- name: Remove empty files from the packages
136136
shell: bash
137137
run: find $ARTIFACTS_STAGING_DIR -empty -delete
138-
138+
139139
- name: Upload the packages to GitHub Actions
140-
uses: actions/upload-artifact@v4
140+
uses: actions/upload-artifact@v7
141141
with:
142142
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.PLATFORM }})'
143143
path: ${{ env.ARTIFACTS_STAGING_DIR }}

.github/workflows/cd-store-stable.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
WORKING_DIR: '${{ github.workspace }}' # D:\a\Files\Files\
3333
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
3434
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages\'
35-
APP_PROJECT_PATH: '${{ github.workspace }}\src\Files.App\Files.App.csproj'
35+
APP_PROJECT_PATH: '${{ github.workspace }}\src\Files.App\Files.App.csproj'
3636
PACKAGE_MANIFEST_PATH: '${{ github.workspace }}\src\Files.App\Package.appxmanifest'
3737
LAUNCHER_PROJECT_PATH: 'src\Files.App.Launcher\Files.App.Launcher.vcxproj'
3838

3939
steps:
4040
- name: Checkout the repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v6
4242
- name: Setup MSBuild
43-
uses: microsoft/setup-msbuild@v2
43+
uses: microsoft/setup-msbuild@v3
4444
- name: Setup NuGet
45-
uses: NuGet/setup-nuget@v2
45+
uses: NuGet/setup-nuget@v3
4646
- name: Setup .NET
47-
uses: actions/setup-dotnet@v4
47+
uses: actions/setup-dotnet@v5
4848
with:
4949
global-json-file: global.json
5050

@@ -92,7 +92,7 @@ jobs:
9292
-v:quiet
9393
9494
- name: Sign launcher EXE with Azure Trusted Signing
95-
uses: azure/trusted-signing-action@v0.4.0
95+
uses: Azure/artifact-signing-action@v1
9696
with:
9797
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
9898
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -137,7 +137,7 @@ jobs:
137137
run: find $ARTIFACTS_STAGING_DIR -empty -delete
138138

139139
- name: Upload the packages to GitHub Actions
140-
uses: actions/upload-artifact@v4
140+
uses: actions/upload-artifact@v7
141141
with:
142142
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.PLATFORM }})'
143143
path: ${{ env.ARTIFACTS_STAGING_DIR }}

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ env:
3636
AUTOMATED_TESTS_PROJECT_DIR: '${{ github.workspace }}\tests\Files.InteractionTests'
3737
AUTOMATED_TESTS_PROJECT_PATH: '${{ github.workspace }}\tests\Files.InteractionTests\Files.InteractionTests.csproj'
3838
AUTOMATED_TESTS_ASSEMBLY_DIR: '${{ github.workspace }}\artifacts\TestsAssembly'
39-
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
39+
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
4040
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages\'
4141
APPX_SELFSIGNED_CERT_PATH: '${{ github.workspace }}\.github\workflows\FilesApp_SelfSigned.pfx'
4242
WINAPPDRIVER_EXE86_PATH: 'C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe'
@@ -53,11 +53,11 @@ jobs:
5353
steps:
5454

5555
- name: Checkout the repository
56-
uses: actions/checkout@v4
56+
uses: actions/checkout@v6
5757
with:
5858
fetch-depth: 2
5959
- name: Setup .NET
60-
uses: actions/setup-dotnet@v4
60+
uses: actions/setup-dotnet@v5
6161

6262
- name: Install XamlStyler.Console
6363
run: 'dotnet tool install --global XamlStyler.Console'
@@ -75,7 +75,7 @@ jobs:
7575
}
7676
}
7777
continue-on-error: true
78-
78+
7979
- name: Fail if necessary
8080
if: steps.check-step.outcome == 'failure'
8181
run: exit 1
@@ -97,13 +97,13 @@ jobs:
9797
steps:
9898

9999
- name: Checkout the repository
100-
uses: actions/checkout@v4
100+
uses: actions/checkout@v6
101101
- name: Setup MSBuild
102-
uses: microsoft/setup-msbuild@v2
102+
uses: microsoft/setup-msbuild@v3
103103
- name: Setup NuGet
104-
uses: NuGet/setup-nuget@v2
104+
uses: NuGet/setup-nuget@v3
105105
- name: Setup .NET
106-
uses: actions/setup-dotnet@v4
106+
uses: actions/setup-dotnet@v5
107107
with:
108108
global-json-file: global.json
109109

@@ -117,7 +117,7 @@ jobs:
117117
-p:PublishReadyToRun=true `
118118
-v:quiet
119119
120-
- if: env.CONFIGURATION != env.AUTOMATED_TESTS_CONFIGURATION || env.ARCHITECTURE != env.AUTOMATED_TESTS_ARCHITECTURE
120+
- if: env.CONFIGURATION != env.AUTOMATED_TESTS_CONFIGURATION || env.ARCHITECTURE != env.AUTOMATED_TESTS_ARCHITECTURE
121121
name: Build Files
122122
run: |
123123
msbuild `
@@ -173,7 +173,7 @@ jobs:
173173
174174
- if: env.ARCHITECTURE == env.AUTOMATED_TESTS_ARCHITECTURE && env.CONFIGURATION == env.AUTOMATED_TESTS_CONFIGURATION
175175
name: Upload the packages to the Artifacts
176-
uses: actions/upload-artifact@v4
176+
uses: actions/upload-artifact@v7
177177
with:
178178
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.ARCHITECTURE }})'
179179
path: ${{ env.ARTIFACTS_STAGING_DIR }}
@@ -202,14 +202,14 @@ jobs:
202202
run: exit 1
203203

204204
- name: Checkout the repository
205-
uses: actions/checkout@v4
205+
uses: actions/checkout@v6
206206
- name: Setup .NET
207-
uses: actions/setup-dotnet@v4
207+
uses: actions/setup-dotnet@v5
208208
with:
209209
global-json-file: global.json
210210

211211
- name: Download the packages from the Artifacts
212-
uses: actions/download-artifact@v4
212+
uses: actions/download-artifact@v8
213213
with:
214214
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.AUTOMATED_TESTS_ARCHITECTURE }})'
215215
path: ${{ env.ARTIFACTS_STAGING_DIR }}
@@ -267,7 +267,7 @@ jobs:
267267
- if: github.event_name == 'pull_request'
268268
uses: geekyeggo/delete-artifact@v5
269269
with:
270-
name: '*'
270+
name: '*'
271271

272272
# - name: Generate markdown from the tests result
273273
# shell: pwsh

.github/workflows/format-xaml.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
if: github.event.issue.pull_request && github.event.comment.body == '/format'
99
runs-on: windows-2025-vs2026
1010
environment: Pull Requests
11-
permissions:
11+
permissions:
1212
contents: write
1313

1414
steps:
1515
- name: Generate GitHub Apps token
1616
id: generate
17-
uses: actions/create-github-app-token@v1
17+
uses: actions/create-github-app-token@v3
1818
with:
1919
app-id: ${{ secrets.BOT_APP_ID }}
2020
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
# this is required for early termination in case any conditions aren't satisfied
2525
# https://github.com/actions/runner/issues/662
26-
26+
2727
"CAN_RUN=1" | Out-File -FilePath $env:GITHUB_ENV -Append
2828
2929
- name: Login to gh cli
@@ -37,14 +37,14 @@ jobs:
3737
gh pr comment ${{ github.event.issue.number }} -b "🔒 This PR cannot be committed to. Ensure that Allow edits from maintainers is enabled."
3838
"CAN_RUN=0" | Out-File -FilePath $env:GITHUB_ENV -Append
3939
}
40-
40+
4141
# all steps after this one must have the env.CAN_RUN == 1 condition
4242
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v6
4444
if: env.CAN_RUN == 1
4545

4646
- name: Setup .NET
47-
uses: actions/setup-dotnet@v4
47+
uses: actions/setup-dotnet@v5
4848

4949
- name: Set git identity
5050
if: env.CAN_RUN == 1
@@ -73,11 +73,11 @@ jobs:
7373
gh pr comment ${{ github.event.issue.number }} -b "⛔ No XAML files found to format."
7474
"CAN_RUN=0" | Out-File -FilePath $env:GITHUB_ENV -Append
7575
}
76-
76+
7777
- name: Install XamlStyler.Console
7878
if: env.CAN_RUN == 1
7979
run: dotnet tool install --global XamlStyler.Console
80-
80+
8181
- name: Format XAML files
8282
if: env.CAN_RUN == 1
8383
run: |
@@ -122,7 +122,7 @@ jobs:
122122
}
123123
}
124124
}' -F owner=$owner -F name=$name -F number=$number --jq '{Branch: .data.repository.pullRequest.headRef.name, Url: .data.repository.pullRequest.headRepository.url}' | ConvertFrom-Json
125-
125+
126126
$url = [UriBuilder]($data.Url)
127127
$url.UserName = 'x-access-token'
128128
$url.Password = '${{ steps.generate.outputs.token }}'

0 commit comments

Comments
 (0)