idk lets try this
This commit is contained in:
parent
cf64b3d548
commit
c7a7fe517b
14 changed files with 373 additions and 0 deletions
8
.github/actions/make-version-string/Dockerfile
vendored
Normal file
8
.github/actions/make-version-string/Dockerfile
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
FROM mcr.microsoft.com/powershell
|
||||
WORKDIR /action
|
||||
|
||||
RUN pwsh -c '$ProgressPreference = "SilentlyContinue"; Install-Module Axinom.DevOpsTooling -Scope AllUsers -AllowPrerelease -Force'
|
||||
|
||||
COPY *.ps1 .
|
||||
|
||||
ENTRYPOINT ["pwsh", "-c", "& /action/entrypoint.ps1"]
|
12
.github/actions/make-version-string/action.yml
vendored
Normal file
12
.github/actions/make-version-string/action.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
name: 'Create the version string'
|
||||
description: 'Generates a version string of the form [branch-]1.2.3-NNNNNNNNNNN-CCCCCCC, where N is an incrementing value and C identifies the commit, with an optional branch prefix. Fields lengths are unspecified and may increase in future versions.'
|
||||
inputs:
|
||||
assemblyInfoPath:
|
||||
description: 'Path to a .NET style AssemblyInfo file containing the numeric version component.'
|
||||
required: true
|
||||
outputs:
|
||||
versionstring:
|
||||
description: 'The generated version string'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
8
.github/actions/make-version-string/entrypoint.ps1
vendored
Normal file
8
.github/actions/make-version-string/entrypoint.ps1
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
Import-Module Axinom.DevOpsTooling
|
||||
|
||||
$path = Join-Path $env:GITHUB_WORKSPACE $env:INPUT_ASSEMBLYINFOPATH
|
||||
|
||||
$version = Set-DotNetBuildAndVersionStrings -assemblyInfoPath $path -commitId $ENV:GITHUB_SHA
|
||||
Write-Host "::set-output name=versionstring::$version"
|
Loading…
Add table
Add a link
Reference in a new issue