File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,13 @@ jobs:
22
22
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
23
23
echo "Latest tag: $latest_tag"
24
24
echo "version=${latest_tag#v}" >> "$GITHUB_OUTPUT"
25
+ echo "tag=${latest_tag}" >> "$GITHUB_OUTPUT"
25
26
26
27
- name : Run winget-releaser
27
28
uses : vedantmgoyal9/winget-releaser@main
28
29
with :
29
30
identifier : vim.vim.nightly
30
31
installers-regex : ' gvim.*(x64|x86|arm64).exe$'
31
32
version : ${{ steps.get-version.outputs.version }}
33
+ release-tag : ${{ steps.get-version.outputs.tag }}
32
34
token : ${{ secrets.WINGET_TOKEN }}
Original file line number Diff line number Diff line change @@ -13,30 +13,30 @@ jobs:
13
13
outputs :
14
14
needs_update : ${{ steps.check-updates.outputs.result }}
15
15
version : ${{ steps.get-version.outputs.version }}
16
+ tag : ${{ steps.get-version.outputs.tag }}
16
17
17
18
steps :
18
19
- uses : actions/checkout@v4
19
20
with :
20
- path : repo
21
21
fetch-depth : 0 # Needed to fetch all tags
22
22
23
23
- name : Get latest tag
24
24
id : get-version
25
25
run : |
26
- cd repo
27
26
git fetch --tags
28
27
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
29
28
echo "Latest tag: $latest_tag"
30
29
echo "version=${latest_tag#v}" >> "$GITHUB_OUTPUT"
30
+ echo "tag=${latest_tag}" >> "$GITHUB_OUTPUT"
31
31
32
32
- name : Check updates
33
33
id : check-updates
34
34
run : |
35
- cd repo
36
35
echo "result=$(scripts/do_next_stable_release.sh $URL)" >> "$GITHUB_OUTPUT"
37
36
env :
38
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
38
URL : " https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/v/vim/vim"
39
+ REF_NAME : ${{ steps.get-version.outputs.tag }}
40
40
41
41
publish-winget-stable :
42
42
runs-on : ubuntu-latest
49
49
installers-regex : ' gvim.*(x64|x86|arm64).exe$'
50
50
token : ${{ secrets.WINGET_TOKEN }}
51
51
version : ${{ needs.check-update-job.outputs.version }}
52
+ release-tag : ${{ needs.check-update-job.outputs.tag }}
Original file line number Diff line number Diff line change 6
6
# and if the release number is smaller than the current Tag name + 100
7
7
# return true, else false
8
8
9
- if [[ -z " $GITHUB_REF_NAME " ]]; then
9
+ if [[ -z " $REF_NAME " ]]; then
10
10
echo " not run in Github Actions CI, quitting"
11
11
exit 2
12
12
fi
@@ -22,7 +22,7 @@ DIR="$(dirname $0)"
22
22
LAST_STABLE_RELEASE=$( ${DIR} /get_last_windows_release.sh " $URL " | tr -d ' .' )
23
23
LAST_STABLE_RELEASE=$(( $LAST_STABLE_RELEASE + 100 ))
24
24
25
- TAG_NAME=$( echo ${GITHUB_REF_NAME } | tr -d ' .v' )
25
+ TAG_NAME=$( echo ${REF_NAME } | tr -d ' .v' )
26
26
27
27
if [[ ${TAG_NAME} -ge ${LAST_STABLE_RELEASE} ]]; then
28
28
echo " true"
You can’t perform that action at this time.
0 commit comments