Skip to content

Commit 80d542f

Browse files
committed
ci(workflows): [release-chore] use flex-development/gh-release-url-action
- https://github.com/flex-development/gh-release-url-action - https://github.com/flex-development/jq-action Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 3fe4a50 commit 80d542f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/release-chore.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
# - https://github.com/actions/setup-node
1818
# - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration
1919
# - https://github.com/flex-development/gh-commit
20+
# - https://github.com/flex-development/gh-release-url-action
2021
# - https://github.com/flex-development/grease
22+
# - https://github.com/flex-development/jq-action
2123
# - https://github.com/hmarr/debug-action
2224
# - https://github.com/kaisugi/action-regex-match
2325
# - https://regex101.com/r/OwpOr2
@@ -39,7 +41,7 @@ jobs:
3941
outputs:
4042
branch: ${{ steps.branch.outputs.result }}
4143
message: ${{ steps.message.outputs.result }}
42-
tag: ${{ steps.tag.outputs.result }}
44+
tag: ${{ steps.environment.outputs.tag }}
4345
version: ${{ steps.version.outputs.match }}
4446
steps:
4547
- id: debug
@@ -87,13 +89,21 @@ jobs:
8789
Message must match [`${{ vars.RELEASE_CHORE_REGEX }}`](https://regex101.com/r/OwpOr2)'
8890
echo "$ERR" >>$GITHUB_STEP_SUMMARY
8991
exit 1
90-
- id: tag
92+
- id: tag-prefix
93+
name: Get release tag prefix
94+
uses: flex-development/[email protected]
95+
with:
96+
data: grease.config.json
97+
filter: .tagprefix
98+
- id: environment
9199
name: Get release tag
92-
run: |
93-
echo "result=$(jq .tagprefix grease.config.json -r)${{ steps.version.outputs.match }}" >>$GITHUB_OUTPUT
100+
uses: flex-development/[email protected]
101+
with:
102+
tag-prefix: ${{ steps.tag-prefix.outputs.result }}
103+
version: ${{ steps.version.outputs.match }}
94104
- id: message
95105
name: Get release message
96-
run: 'echo "result=release: ${{ steps.tag.outputs.result }}" >>$GITHUB_OUTPUT'
106+
run: 'echo "result=release: ${{ steps.environment.outputs.tag }}" >>$GITHUB_OUTPUT'
97107
- id: branch
98108
name: Get release branch name
99109
run: echo "result=release/${{ steps.version.outputs.match }}" >>$GITHUB_OUTPUT

0 commit comments

Comments
 (0)