Skip to content

Commit

Permalink
Updated pipeline files to support change of master to main (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO authored Jan 21, 2021
1 parent eae311c commit f0d2cdb
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Pin `Pester` module to 4.10.1 because Pester 5.0 is missing code
coverage - Fixes [Issue #60](https://github.com/dsccommunity/iSCSIDsc/issues/60).
- Automatically publish documentation to GitHub Wiki - Fixes [Issue #61](https://github.com/dsccommunity/iSCSIDsc/issues/61).
- Renamed `master` branch to `main` - Fixes [Issue #63](https://github.com/dsccommunity/iSCSIDsc/issues/63).

## [1.5.0.41] - 2017-09-02

Expand Down
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ assembly-informational-format: '{NuGetVersionV2}+Sha.{Sha}.Date.{CommitDate}'
branches:
master:
tag: preview
regex: ^main$
pull-request:
tag: PR
feature:
Expand All @@ -20,7 +21,6 @@ branches:
increment: Patch
regex: (hot)?fix(es)?[\/-]
source-branches: ['master']

ignore:
sha: []
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 @@
# iSCSIDsc

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

Expand All @@ -12,7 +12,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
8 changes: 6 additions & 2 deletions 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 @@ -288,7 +288,7 @@ stages:
and(
succeeded(),
or(
eq(variables['Build.SourceBranch'], 'refs/heads/master'),
eq(variables['Build.SourceBranch'], 'refs/heads/main'),
startsWith(variables['Build.SourceBranch'], 'refs/tags/')
),
contains(variables['System.TeamFoundationCollectionUri'], 'dsccommunity')
Expand Down Expand Up @@ -317,6 +317,8 @@ stages:
env:
GitHubToken: $(GitHubToken)
GalleryApiToken: $(GalleryApiToken)
ReleaseBranch: main
MainGitBranch: main

- task: PowerShell@2
name: sendChangelogPR
Expand All @@ -327,3 +329,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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.COMPANYNAME DSC Community
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/dsccommunity/iSCSIDsc/blob/master/LICENSE
.LICENSEURI https://github.com/dsccommunity/iSCSIDsc/blob/main/LICENSE
.PROJECTURI https://github.com/dsccommunity/iSCSIDsc
.ICONURI
.EXTERNALMODULEDEPENDENCIES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.COMPANYNAME DSC Community
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/dsccommunity/iSCSIDsc/blob/master/LICENSE
.LICENSEURI https://github.com/dsccommunity/iSCSIDsc/blob/main/LICENSE
.PROJECTURI https://github.com/dsccommunity/iSCSIDsc
.ICONURI
.EXTERNALMODULEDEPENDENCIES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.COMPANYNAME DSC Community
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/dsccommunity/iSCSIDsc/blob/master/LICENSE
.LICENSEURI https://github.com/dsccommunity/iSCSIDsc/blob/main/LICENSE
.PROJECTURI https://github.com/dsccommunity/iSCSIDsc
.ICONURI
.EXTERNALMODULEDEPENDENCIES
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 iSCSIDsc

## Change Log

A full list of changes in each version can be found in the [change log](https://github.com/dsccommunity/iSCSIDsc/blob/master/CHANGELOG.md).
A full list of changes in each version can be found in the [change log](https://github.com/dsccommunity/iSCSIDsc/blob/main/CHANGELOG.md).
2 changes: 1 addition & 1 deletion source/iSCSIDsc.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
Tags = @('DesiredStateConfiguration', 'DSC', 'DSCResource', 'iSCSI', 'Target', 'Initiator')

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

# A URL to the main website for this project.
ProjectUri = 'https://github.com/dsccommunity/iSCSIDsc'
Expand Down

0 comments on commit f0d2cdb

Please sign in to comment.