Skip to content

Commit

Permalink
Updates workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffodonnell committed Mar 23, 2024
1 parent 6d812d6 commit 5be7eaa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ jobs:
with:
name: ${{ env.artifactName }}
path: ${{ runner.temp }}/${{ env.moduleName }}
- name: Set prelease value
shell: pwsh
run: |-
$version = "${{ github.ref_name }}"
$result = $version | Select-String -Pattern "v([0-9]+).([0-9]+).([0-9]+)(-)?([A-Za-z]+)?"
if ($result.Matches.Success -and $result.Matches.Groups.Length -eq 6) {
$prerelease = $result.Matches.Groups[5].Value
}
# https://www.jamescroft.co.uk/setting-github-actions-environment-variables-in-powershell/
echo "prerelease=$prerelease" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Publish module to GitHub
shell: pwsh
run: |-
Expand Down

0 comments on commit 5be7eaa

Please sign in to comment.