Skip to content

Commit

Permalink
Updated pipeline files to support change of master to main - fixes #84 (
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO committed Dec 28, 2020
1 parent d1a7d98 commit 8364df3
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
coverage - Fixes [Issue #78](https://github.com/dsccommunity/WSManDsc/issues/78).
- WSManDsc
- Automatically publish documentation to GitHub Wiki - Fixes [Issue #82](https://github.com/dsccommunity/WSManDsc/issues/82).
- Renamed `master` branch to `main` - Fixes [Issue #82](https://github.com/dsccommunity/WSManDsc/issues/82).

## [3.1.1] - 2020-01-31

Expand Down
10 changes: 4 additions & 6 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ assembly-informational-format: '{NuGetVersionV2}+Sha.{Sha}.Date.{CommitDate}'
branches:
master:
tag: preview
regex: ^master$|^main$
pull-request:
tag: PR
feature:
tag: useBranchName
increment: Minor
regex: f(eature(s)?)?\/-]
source-branches: ['master']
regex: f(eature(s)?)?[\/-]
source-branches: ['main']
hotfix:
tag: fix
increment: Patch
regex: (hot)?fix(es)?[\/-]
source-branches: ['master']

ignore:
sha: []
source-branches: ['main']
merge-message-formats: {}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# WSManDsc

[![Build Status](https://dev.azure.com/dsccommunity/WsManDsc/_apis/build/status/dsccommunity.WSManDsc?branchName=master)](https://dev.azure.com/dsccommunity/WsManDsc/_build/latest?definitionId=6&branchName=master)
![Code Coverage](https://img.shields.io/azure-devops/coverage/dsccommunity/WSManDsc/6/master)
[![Azure DevOps tests](https://img.shields.io/azure-devops/tests/dsccommunity/WSManDsc/6/master)](https://dsccommunity.visualstudio.com/WSManDsc/_test/analytics?definitionId=6&contextType=build)
[![Build Status](https://dev.azure.com/dsccommunity/WsManDsc/_apis/build/status/dsccommunity.WSManDsc?branchName=main)](https://dev.azure.com/dsccommunity/WsManDsc/_build/latest?definitionId=6&branchName=main)
![Code Coverage](https://img.shields.io/azure-devops/coverage/dsccommunity/WSManDsc/6/main)
[![Azure DevOps tests](https://img.shields.io/azure-devops/tests/dsccommunity/WSManDsc/6/main)](https://dsccommunity.visualstudio.com/WSManDsc/_test/analytics?definitionId=6&contextType=build)
[![PowerShell Gallery (with prereleases)](https://img.shields.io/powershellgallery/vpre/WSManDsc?label=WSManDsc%20Preview)](https://www.powershellgallery.com/packages/WSManDsc/)
[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/WSManDsc?label=WSManDsc)](https://www.powershellgallery.com/packages/WSManDsc/)

Expand All @@ -19,7 +19,7 @@ This project has adopted this [Code of Conduct](CODE_OF_CONDUCT.md).

## Releases

For each merge to the branch `master` a preview release will be
For each merge to the branch `main` a preview release will be
deployed to [PowerShell Gallery](https://www.powershellgallery.com/).
Periodically a release version tag will be pushed which will deploy a
full release to [PowerShell Gallery](https://www.powershellgallery.com/).
Expand Down
6 changes: 5 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trigger:
branches:
include:
- master
- main
paths:
include:
- source/*
Expand Down Expand Up @@ -271,6 +271,8 @@ stages:
env:
GitHubToken: $(GitHubToken)
GalleryApiToken: $(GalleryApiToken)
ReleaseBranch: main
MainGitBranch: main

- task: PowerShell@2
name: sendChangelogPR
Expand All @@ -281,3 +283,5 @@ stages:
pwsh: true
env:
GitHubToken: $(GitHubToken)
ReleaseBranch: main
MainGitBranch: main
1 change: 1 addition & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ DscTest:
- output
ExcludeModuleFile:
- Modules/DscResource.Common
MainGitBranch: main

Resolve-Dependency:
Gallery: 'PSGallery'
Expand Down
2 changes: 1 addition & 1 deletion source/WSManDsc.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
Tags = @('DesiredStateConfiguration', 'DSC', 'DSCResource', 'WSMan')

# A URL to the license for this module.
LicenseUri = 'https://github.com/dsccommunity/WSManDsc/blob/master/LICENSE'
LicenseUri = 'https://github.com/dsccommunity/WSManDsc/blob/main/LICENSE'

# A URL to the main website for this project.
ProjectUri = 'https://github.com/dsccommunity/WSManDsc'
Expand Down
2 changes: 1 addition & 1 deletion source/WikiSource/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Get-DscResource -Module WSManDsc

## Change Log

A full list of changes in each version can be found in the [change log](https://github.com/dsccommunity/WSManDsc/blob/master/CHANGELOG.md).
A full list of changes in each version can be found in the [change log](https://github.com/dsccommunity/WSManDsc/blob/main/CHANGELOG.md).

0 comments on commit 8364df3

Please sign in to comment.