-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 959 Bytes
/
winget.yml
File metadata and controls
34 lines (28 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Bump Winget PR
on:
workflow_dispatch:
jobs:
winget-bump:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get release version
run: |
# Extract tag
TAG_NAME="${{ github.event.release.tag_name }}"
if [ -z "$TAG_NAME" ]; then
TAG_NAME=$(git fetch --tags && git describe --tags $(git rev-list --tags --max-count=1))
fi
# Remove 'v' before tag
VERSION=$(echo "$TAG_NAME" | sed 's/^v//')
echo "Release version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Use winget-releaser to create a PR
uses: vedantmgoyal9/winget-releaser@main
with:
identifier: "Nethesis.NethLink"
version: ${{ env.VERSION }}
token: ${{ secrets.WINGET_GITHUB_TOKEN }}
fork-user: edospadoni
release-tag: v${{ env.VERSION }}