Skip to content

Commit

Permalink
Try and fix gitversion in main for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Nov 13, 2023
1 parent 178520d commit aa8d886
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .build/Build.CI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ public static RocketSurgeonGitHubActionsConfiguration CiMiddleware(RocketSurgeon
.PublishLogs<Pipeline>()
.FailFast = false;

job.Steps.Insert(
GetCheckStepIndex(job)+1, new RunStep("Create branch for tag (gitversion)")
{
If = "(github.ref_type == 'tag')",
Run = "git checkout -b ${{ github.ref_name }}"
}
);
// job.Steps.Insert(
// GetCheckStepIndex(job)+1, new RunStep("Create branch for tag (gitversion)")
// {
// If = "(github.ref_type == 'tag')",
// Run = "git checkout -b ${{ github.ref_name }}"
// }
// );

return configuration;
}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ jobs:
with:
clean: 'false'
fetch-depth: '0'
- name: Create branch for tag (gitversion)
if: (github.ref_type == 'tag')
run: |
git checkout -b ${{ github.ref_name }}
- name: NuGet Cache
uses: actions/cache@v3
with:
Expand Down
6 changes: 5 additions & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ mode: ContinuousDeployment
continuous-delivery-fallback-tag: ci
next-version: 0.1.0
branches:
main:
regex: ^master$|^main$
mode: ContinuousDelivery
tag: preview
next:
regex: ^next$
mode: ContinuousDeployment
mode: ContinuousDelivery
tag: next
increment: Major
prevent-increment-of-merged-branch-version: false
Expand Down

0 comments on commit aa8d886

Please sign in to comment.