File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
template/.github/workflows Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 17
17
ref :
18
18
required : true
19
19
type : string
20
+ version :
21
+ required : true
22
+ type : string
20
23
21
24
permissions :
22
25
contents : read # required for checkout
50
53
with :
51
54
immutable : true
52
55
56
+ - name : Determine version
57
+ id : determine_version
58
+ shell : bash
59
+ run : |
60
+ INPUT_VERSION="${{ inputs.version }}"
61
+ SHA_SHORT="${{ github.sha }}"
62
+
63
+ if [ -z "$INPUT_VERSION" ]; then
64
+ echo "version=0.0.1-${SHA_SHORT}" >> $GITHUB_OUTPUT
65
+ else
66
+ echo "version=${INPUT_VERSION}" >> $GITHUB_OUTPUT
67
+ fi
68
+
69
+ - name : Version the package
70
+ uses : simatic-ax/actions/apax-version@v3
71
+ with :
72
+ version : ${{ steps.determine_version.outputs.version }}
73
+
53
74
- name : Build source code
54
75
uses : simatic-ax/actions/apax-build@v3
55
76
Original file line number Diff line number Diff line change 19
19
APAX_TOKEN : ${{ secrets.APAX_TOKEN }}
20
20
with :
21
21
ref : ${{ github.event.release.target_commitish }}
22
+ version : ${{ github.event.release.tag_name }}
22
23
23
24
release :
24
25
name : Release the package
You can’t perform that action at this time.
0 commit comments