File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,13 @@ jobs:
16
16
outputs :
17
17
projectname : ${{ steps.info.outputs.projectname }}
18
18
projectsuffix : ${{ steps.info.outputs.projectsuffix }}
19
- tag : ${{ steps.version .outputs.tag }}
19
+ tag : ${{ steps.info .outputs.tag }}
20
20
21
21
steps :
22
22
- name : Checkout with fetch depth 2
23
23
uses : actions/checkout@v4
24
24
with :
25
- fetch-depth : 2
26
-
27
- - name : Get tag
28
- id : version
29
- uses : " WyriHaximus/github-action-get-previous-tag@v1"
30
- with :
31
- fallback : tag_not_found
25
+ fetch-depth : 0
32
26
33
27
- name : Get modpack info
34
28
id : info
44
38
projectname=`echo $(jq -r '.name' <<< "$manifestjson")`
45
39
echo "projectname=$projectname" >> $GITHUB_OUTPUT
46
40
41
+ latest_tag=$(git describe --tags --abbrev=0)
42
+ echo "tag=$latest_tag" >> $GITHUB_OUTPUT
43
+
47
44
if [[ ${{ startsWith(github.ref, 'refs/tags/v') }} == true ]]; then
48
- echo "projectsuffix=${{ steps.version.outputs.tag }} " >> $GITHUB_OUTPUT
45
+ echo "projectsuffix=$latest_tag " >> $GITHUB_OUTPUT
49
46
else
50
47
echo "projectsuffix=build.${{ github.run_number }}" >> $GITHUB_OUTPUT
51
48
fi
55
52
latest_tag=$(git describe --tags --abbrev=0)
56
53
latest_tagged_commit=$(git rev-list -n 1 --pretty=format:"%h" $latest_tag | sed -n 2p)
57
54
58
- if [ "$latest_tag" = ${{ steps.version .outputs.tag }} ]; then
55
+ if [ "$latest_tag" = ${{ steps.info .outputs.tag }} ]; then
59
56
latest_tag=$(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)
60
57
latest_tagged_commit=$(git rev-list -n 1 --pretty=format:"%h" $latest_tag | sed -n 2p)
61
58
fi
You can’t perform that action at this time.
0 commit comments