File tree Expand file tree Collapse file tree 2 files changed +28
-5
lines changed Expand file tree Collapse file tree 2 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 10
10
publish :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : vedantmgoyal9/winget-releaser@main
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+ with :
16
+ fetch-depth : 0 # Needed to fetch all tags
17
+
18
+ - name : Get latest tag
19
+ id : get-version
20
+ run : |
21
+ git fetch --tags
22
+ latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
23
+ echo "Latest tag: $latest_tag"
24
+ echo "version=${latest_tag#v}" >> "$GITHUB_OUTPUT"
25
+
26
+ - name : Run winget-releaser
27
+ uses : vedantmgoyal9/winget-releaser@main
14
28
with :
15
29
identifier : vim.vim.nightly
16
30
installers-regex : ' gvim.*(x64|x86|arm64).exe$'
31
+ version : ${{ steps.get-version.outputs.version }}
17
32
token : ${{ secrets.WINGET_TOKEN }}
Original file line number Diff line number Diff line change @@ -12,20 +12,27 @@ jobs:
12
12
13
13
outputs :
14
14
needs_update : ${{ steps.check-updates.outputs.result }}
15
+ version : ${{ steps.get-version.outputs.version }}
15
16
16
17
steps :
17
18
- uses : actions/checkout@v4
18
19
with :
19
20
path : repo
21
+ fetch-depth : 0 # Needed to fetch all tags
22
+
23
+ - name : Get latest tag
24
+ id : get-version
25
+ run : |
26
+ cd repo
27
+ git fetch --tags
28
+ latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
29
+ echo "Latest tag: $latest_tag"
30
+ echo "version=${latest_tag#v}" >> "$GITHUB_OUTPUT"
20
31
21
32
- name : Check updates
22
33
id : check-updates
23
34
run : |
24
35
cd repo
25
- # only for debugging
26
- #
27
- # bash -x scripts/get_last_windows_release.sh "$URL" || true
28
- # bash -x scripts/do_next_stable_release.sh || true
29
36
echo "result=$(scripts/do_next_stable_release.sh $URL)" >> "$GITHUB_OUTPUT"
30
37
env :
31
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
48
identifier : vim.vim
42
49
installers-regex : ' gvim.*(x64|x86|arm64).exe$'
43
50
token : ${{ secrets.WINGET_TOKEN }}
51
+ version : ${{ needs.check-update-job.outputs.version }}
You can’t perform that action at this time.
0 commit comments