Skip to content

Commit 0fdce5d

Browse files
vicperdanaCopilot
andauthored
fix: replace softprops/action-gh-release with gh CLI (#409)
Replace third-party softprops/action-gh-release action with the built-in GitHub CLI (gh release create) in all three release workflows. This eliminates a third-party dependency that isn't in the Azure org's Actions allowlist, avoiding the need to add an external action. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5eeb455 commit 0fdce5d

3 files changed

Lines changed: 22 additions & 17 deletions

File tree

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ jobs:
4949
Publish-Module -Path packages/psdocs-azure/out/modules/PSDocs.Azure -NuGetApiKey $env:PSGALLERY_API_KEY
5050
5151
- name: Create GitHub Release
52-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
53-
with:
54-
name: PSDocs.Azure v${{ steps.version.outputs.version }}
55-
body_path: packages/psdocs-azure/CHANGELOG.md
56-
generate_release_notes: true
52+
env:
53+
GH_TOKEN: ${{ github.token }}
54+
run: |
55+
gh release create "${{ github.ref_name }}" \
56+
--title "PSDocs.Azure v${{ steps.version.outputs.version }}" \
57+
--notes-file packages/psdocs-azure/CHANGELOG.md \
58+
--generate-notes

.github/workflows/release-psdocs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ jobs:
4949
Publish-Module -Path packages/psdocs/out/modules/PSDocs -NuGetApiKey $env:PSGALLERY_API_KEY
5050
5151
- name: Create GitHub Release
52-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
53-
with:
54-
name: PSDocs v${{ steps.version.outputs.version }}
55-
body_path: packages/psdocs/CHANGELOG.md
56-
generate_release_notes: true
52+
env:
53+
GH_TOKEN: ${{ github.token }}
54+
run: |
55+
gh release create "${{ github.ref_name }}" \
56+
--title "PSDocs v${{ steps.version.outputs.version }}" \
57+
--notes-file packages/psdocs/CHANGELOG.md \
58+
--generate-notes

.github/workflows/release-vscode.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ jobs:
7272
npx @vscode/vsce publish --packagePath "${{ steps.vsix.outputs.file }}" --pat "$VSCE_PAT"
7373
7474
- name: Create GitHub Release
75-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
76-
with:
77-
name: VS Code Extension v${{ steps.version.outputs.version }}
78-
body_path: packages/vscode-extension/CHANGELOG.md
79-
generate_release_notes: true
80-
files: |
81-
${{ steps.vsix.outputs.path }}
75+
env:
76+
GH_TOKEN: ${{ github.token }}
77+
run: |
78+
gh release create "${{ github.ref_name }}" \
79+
--title "VS Code Extension v${{ steps.version.outputs.version }}" \
80+
--notes-file packages/vscode-extension/CHANGELOG.md \
81+
--generate-notes \
82+
"${{ steps.vsix.outputs.path }}"

0 commit comments

Comments
 (0)