Skip to content

Commit bde8ac5

Browse files
committed
Remove setup-dotnet from release publish jobs
The publish job only downloads artifacts and runs dotnet nuget push, which works with the pre-installed SDK on the runner. The setup-dotnet step was referencing global.json which doesn't exist since the repo isn't checked out in the publish job.
1 parent 4c7000f commit bde8ac5

File tree

8 files changed

+0
-30
lines changed

8 files changed

+0
-30
lines changed

.github/workflow-gen/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ git push --delete origin {component.TagPrefix}-{contexts.Event.Input.Version}
237237
.Uses("actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16") // 4.1.8
238238
.With(("name", "artifacts"), ("path", "artifacts"));
239239

240-
publishJob.StepSetupDotNet();
241-
242240
publishJob.Step()
243241
.Name("List files")
244242
.Shell("bash")

.github/workflows/access-token-management-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ jobs:
9999
with:
100100
name: artifacts
101101
path: artifacts
102-
- name: Setup .NET
103-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
104-
with:
105-
global-json-file: global.json
106102
- name: List files
107103
run: tree
108104
shell: bash

.github/workflows/identity-model-oidc-client-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ jobs:
9999
with:
100100
name: artifacts
101101
path: artifacts
102-
- name: Setup .NET
103-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
104-
with:
105-
global-json-file: global.json
106102
- name: List files
107103
run: tree
108104
shell: bash

.github/workflows/identity-model-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ jobs:
9797
with:
9898
name: artifacts
9999
path: artifacts
100-
- name: Setup .NET
101-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
102-
with:
103-
global-json-file: global.json
104100
- name: List files
105101
run: tree
106102
shell: bash

.github/workflows/ignore-this-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ jobs:
9797
with:
9898
name: artifacts
9999
path: artifacts
100-
- name: Setup .NET
101-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
102-
with:
103-
global-json-file: global.json
104100
- name: List files
105101
run: tree
106102
shell: bash

.github/workflows/introspection-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ jobs:
9797
with:
9898
name: artifacts
9999
path: artifacts
100-
- name: Setup .NET
101-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
102-
with:
103-
global-json-file: global.json
104100
- name: List files
105101
run: tree
106102
shell: bash

.github/workflows/memory-cache-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ jobs:
9797
with:
9898
name: artifacts
9999
path: artifacts
100-
- name: Setup .NET
101-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
102-
with:
103-
global-json-file: global.json
104100
- name: List files
105101
run: tree
106102
shell: bash

.github/workflows/razor-slices-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ jobs:
9797
with:
9898
name: artifacts
9999
path: artifacts
100-
- name: Setup .NET
101-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
102-
with:
103-
global-json-file: global.json
104100
- name: List files
105101
run: tree
106102
shell: bash

0 commit comments

Comments
 (0)