Skip to content

Commit 98d628e

Browse files
fix(winget): use release PR URL for deployments (#953)
1 parent f6c8a87 commit 98d628e

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎.github/workflows/__call-update-winget-repo.yml‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ permissions: {}
1212

1313
on:
1414
workflow_call:
15-
inputs:
16-
gh_name:
17-
description: 'GitHub author name to use for the deployment url.'
18-
required: true
19-
type: string
2015
secrets:
2116
GH_TOKEN:
2217
description: 'GitHub token to use for the workflow.'
@@ -29,7 +24,7 @@ jobs:
2924
runs-on: ubuntu-latest
3025
environment:
3126
name: Winget
32-
url: https://github.com/microsoft/winget-pkgs/issues?q=is%3Apr%20author%3A${{ inputs.gh_name }}
27+
url: ${{ steps.winget.outputs.pr-url }}
3328
steps:
3429
- name: Check if Winget repo
3530
id: check-label
@@ -79,7 +74,7 @@ jobs:
7974
if: >-
8075
steps.check-label.outputs.hasTopic == 'true' &&
8176
fromJson(steps.download.outputs.downloaded_files)[0]
82-
uses: vedantmgoyal2009/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e # v2
77+
uses: vedantmgoyal9/winget-releaser@c4f385af3b963eb724738ac0578b14eec7bebcc1 # v2
8378
with:
8479
identifier: "${{ github.repository_owner }}.${{ github.event.repository.name }}"
8580
release-tag: ${{ github.event.release.tag_name }}

‎.github/workflows/_update-winget-repo.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ jobs:
2626
if: github.repository_owner == 'LizardByte'
2727
permissions:
2828
contents: read
29-
with:
30-
gh_name: ${{ vars.GH_BOT_NAME }}
3129
secrets:
3230
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

0 commit comments

Comments
 (0)