File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ name : Build Information (Last Tag)
3+ on : workflow_dispatch
4+
5+ jobs :
6+ info :
7+ name : Info
8+ runs-on : ubuntu-20.04
9+ outputs :
10+ release_type : ${{steps.cf_release_type.outputs.value }}
11+ cf_project : ${{steps.cf_project.outputs.value }}
12+ mod_id : ${{steps.mod_id.outputs.value }}
13+ version : ${{steps.version.outputs.value }}
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v2
18+
19+ - name : Unshallow
20+ run : git fetch --prune --unshallow
21+
22+ - name : Release Type
23+ id : cf_release_type
24+ uses :
christian-draeger/[email protected] 25+ with :
26+ path : ' ./gradle.properties'
27+ property : ' cf_release_type'
28+
29+ - name : Project ID
30+ id : cf_project
31+ uses :
christian-draeger/[email protected] 32+ with :
33+ path : ' ./gradle.properties'
34+ property : ' cf_project'
35+
36+ - name : Mod ID
37+ id : mod_id
38+ uses :
christian-draeger/[email protected] 39+ with :
40+ path : ' ./gradle.properties'
41+ property : ' mod_id'
42+
43+ - name : Find Current Tag
44+ id : current
45+ uses : jimschubert/query-tag-action@v1
46+ with :
47+ include : ' v*'
48+ exclude : ' *-rc*'
49+ commit-ish : ' @'
50+ skip-unshallow : ' true'
51+
52+ - name : Semver Version
53+ id : version
54+ run : |
55+ id=$(echo ${{steps.current.outputs.value}} | cut -d=v -f2)
56+ echo "::set-output name=id::$id"
You can’t perform that action at this time.
0 commit comments