Skip to content

Commit

Permalink
Fix (ci): Fix determination of MODULE_VERSION in publish-to-psgallery…
Browse files Browse the repository at this point in the history
… job in ci-master-pr github workflow
  • Loading branch information
leojonathanoh committed May 5, 2021
1 parent 5e1cf6e commit 65697ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,12 @@ jobs:
- name: Publish
run: |
set -e
MODULE_VERSION=$( echo "${GITHUB_REF}" | sed 's/^v*//' )
# Get 'ref-name' from 'refs/heads/ref-name'
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev )
# Strip of 'v' prefix from tag
MODULE_VERSION=$( echo "${REF}" | sed 's/^v*//' )
# Generate the new module manifest
MODULE_VERSION=${MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/module/Generate-ModuleManifest.ps1 -DefinitionFile build/definitions/modulemanifest/definition.ps1 -Path src/Type-Pwsh/Type-Pwsh.psd1'
Expand Down

0 comments on commit 65697ac

Please sign in to comment.