Skip to content

Commit 8abd56b

Browse files
vicperdanaCopilot
andcommitted
fix: release workflow version passthrough and gh flags
- Pass tag version to Invoke-Build via -Build parameter (was defaulting to 0.0.1 because version was extracted but never used) - Fix gh release create: remove --generate-notes (conflicts with --notes-file, gh rejects the combination) - Fix CHANGELOG path: use repo root CHANGELOG.md for psdocs-azure (packages/psdocs-azure/CHANGELOG.md doesn't exist) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cfbb1ce commit 8abd56b

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/release-psdocs-azure.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
shell: pwsh
4040
working-directory: packages/psdocs-azure
4141
run: |
42-
Invoke-Build Build -File ./pipeline.build.ps1
42+
Invoke-Build Build -File ./pipeline.build.ps1 -Build '${{ steps.version.outputs.version }}'
4343
4444
- name: Publish to PSGallery
4545
shell: pwsh
@@ -54,5 +54,4 @@ jobs:
5454
run: |
5555
gh release create "${{ github.ref_name }}" \
5656
--title "PSDocs.Azure v${{ steps.version.outputs.version }}" \
57-
--notes-file packages/psdocs-azure/CHANGELOG.md \
58-
--generate-notes
57+
--notes-file CHANGELOG.md

.github/workflows/release-psdocs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
shell: pwsh
4040
working-directory: packages/psdocs
4141
run: |
42-
Invoke-Build Build -File ./pipeline.build.ps1
42+
Invoke-Build Build -File ./pipeline.build.ps1 -Build '${{ steps.version.outputs.version }}'
4343
4444
- name: Publish to PSGallery
4545
shell: pwsh
@@ -54,5 +54,4 @@ jobs:
5454
run: |
5555
gh release create "${{ github.ref_name }}" \
5656
--title "PSDocs v${{ steps.version.outputs.version }}" \
57-
--notes-file packages/psdocs/CHANGELOG.md \
58-
--generate-notes
57+
--notes-file packages/psdocs/CHANGELOG.md

.github/workflows/release-vscode.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,4 @@ jobs:
7878
gh release create "${{ github.ref_name }}" \
7979
--title "VS Code Extension v${{ steps.version.outputs.version }}" \
8080
--notes-file packages/vscode-extension/CHANGELOG.md \
81-
--generate-notes \
8281
"${{ steps.vsix.outputs.path }}"

0 commit comments

Comments
 (0)