-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti-ver.yml
35 lines (30 loc) · 896 Bytes
/
multi-ver.yml
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
35
name: Multiple badges update
on:
release:
types: [published]
workflow_dispatch:
jobs:
update-badge:
name: Update latest version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Winget Version Badge
uses: gnpaone/winget-version-badge@v1.0.3
with:
id: "GitHub.cli;Git.Git"
marker_text: "TEST_PKG_1;TEST_PKG_2"
pkg_link: "https://github.com;"
label: "Winget package"
label_color: ";red"
color: "blue;green"
id: latestver
- name: Version
run: |
version="${{ steps.latestver.outputs.winget_ver }}"
echo "ver=$version" >> $GITHUB_OUTPUT
IFS=';' read -r -a array <<< "$version"
for i in "${!array[@]}"; do
echo "ver$i=${array[$i]}" >> $GITHUB_OUTPUT
done