Skip to content

Commit b70084a

Browse files
committed
Add needs to publish job to depend on tag job.
1 parent 224ccad commit b70084a

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

.github/workflow-gen/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ void GenerateReleaseWorkflow(Component component)
9595

9696
workflow.EnvDefaults();
9797

98-
var tagJob = workflow.Job("tag")
98+
var tagJob = workflow
99+
.Job("tag")
99100
.Name("Tag and Pack")
100101
.RunsOn(GitHubHostedRunners.UbuntuLatest)
101102
.Permissions(contents: Permission.Write, packages: Permission.Write)
@@ -136,6 +137,7 @@ git push origin it-${{ github.event.inputs.version }}
136137
var publishJob = workflow.Job("publish")
137138
.Name("Publish to nuget.org")
138139
.RunsOn(GitHubHostedRunners.UbuntuLatest)
140+
.Needs("tag")
139141
.Environment("nuget.org", "");
140142

141143
publishJob.Step()

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ jobs:
7373
retention-days: 15
7474
publish:
7575
name: Publish to nuget.org
76+
needs:
77+
- tag
7678
runs-on: ubuntu-latest
7779
environment:
7880
name: nuget.org

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ jobs:
7373
retention-days: 15
7474
publish:
7575
name: Publish to nuget.org
76+
needs:
77+
- tag
7678
runs-on: ubuntu-latest
7779
environment:
7880
name: nuget.org

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
retention-days: 15
7272
publish:
7373
name: Publish to nuget.org
74+
needs:
75+
- tag
7476
runs-on: ubuntu-latest
7577
environment:
7678
name: nuget.org

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
retention-days: 15
7272
publish:
7373
name: Publish to nuget.org
74+
needs:
75+
- tag
7476
runs-on: ubuntu-latest
7577
environment:
7678
name: nuget.org

0 commit comments

Comments
 (0)