File tree 3 files changed +18
-4
lines changed
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 10
10
required : false
11
11
type : string
12
12
default : ' ["version.json"]'
13
+ separator :
14
+ required : false
15
+ type : string
16
+ default : ' /'
13
17
outputs :
14
18
json :
15
19
description : JSON aggregation of release.json artifacts
62
66
env :
63
67
GITHUB_TOKEN : ${{ github.token }}
64
68
SOURCE : ${{ matrix.source }}
69
+ SEPARATOR : ${{ inputs.separator }}
65
70
HEAD_FULL_NAME : ${{ fromJSON(steps.pr.outputs.json).head.repo.full_name }}
66
71
HEAD_SHA : ${{ fromJSON(steps.pr.outputs.json).head.sha }}
67
72
run : |
70
75
if [[ "$root" == "." ]]; then
71
76
prefix="v"
72
77
else
73
- prefix="$root/ v"
78
+ prefix="${ root}${SEPARATOR} v"
74
79
fi
75
80
echo "prefix=$prefix" | tee -a $GITHUB_OUTPUT
76
81
# If `version.json` file doesn't exists, `version` is `""` and `404` is printed on stderr.
Original file line number Diff line number Diff line change 10
10
required : false
11
11
type : string
12
12
default : ' ["version.json"]'
13
+ separator :
14
+ required : false
15
+ type : string
16
+ default : ' /'
13
17
outputs :
14
18
json :
15
19
description : JSON aggregation of release.json artifacts
@@ -31,12 +35,13 @@ jobs:
31
35
name : Determine version
32
36
env :
33
37
SOURCE : ${{ matrix.source }}
38
+ SEPARATOR : ${{ inputs.separator }}
34
39
run : |
35
- prefix ="$(dirname "$SOURCE")"
36
- if [[ "$prefix " == "." ]]; then
40
+ root ="$(dirname "$SOURCE")"
41
+ if [[ "$root " == "." ]]; then
37
42
prefix="v"
38
43
else
39
- prefix="$prefix/ v"
44
+ prefix="${root}${SEPARATOR} v"
40
45
fi
41
46
echo "prefix=$prefix" | tee -a $GITHUB_OUTPUT
42
47
version="$(yq -r '.workspace.package.version // .package.version // .version // ""' "$SOURCE")"
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## Unreleased
8
8
9
+ ## [ 1.0.8] - 2024-07-25
10
+ ### Added
11
+ - separator input to releaser and releaser-check workflows
12
+
9
13
## [ 1.0.7] - 2024-07-25
10
14
### Added
11
15
- aggregation of release.json artifacts as workflow outputs
You can’t perform that action at this time.
0 commit comments