|
17 | 17 | # - https://github.com/actions/setup-node |
18 | 18 | # - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration |
19 | 19 | # - https://github.com/flex-development/gh-commit |
| 20 | +# - https://github.com/flex-development/gh-release-url-action |
20 | 21 | # - https://github.com/flex-development/grease |
| 22 | +# - https://github.com/flex-development/jq-action |
21 | 23 | # - https://github.com/hmarr/debug-action |
22 | 24 | # - https://github.com/kaisugi/action-regex-match |
23 | 25 | # - https://regex101.com/r/OwpOr2 |
|
39 | 41 | outputs: |
40 | 42 | branch: ${{ steps.branch.outputs.result }} |
41 | 43 | message: ${{ steps.message.outputs.result }} |
42 | | - tag: ${{ steps.tag.outputs.result }} |
| 44 | + tag: ${{ steps.environment.outputs.tag }} |
43 | 45 | version: ${{ steps.version.outputs.match }} |
44 | 46 | steps: |
45 | 47 | - id: debug |
@@ -87,13 +89,21 @@ jobs: |
87 | 89 | Message must match [`${{ vars.RELEASE_CHORE_REGEX }}`](https://regex101.com/r/OwpOr2)' |
88 | 90 | echo "$ERR" >>$GITHUB_STEP_SUMMARY |
89 | 91 | 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 |
91 | 99 | 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 }} |
94 | 104 | - id: message |
95 | 105 | 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' |
97 | 107 | - id: branch |
98 | 108 | name: Get release branch name |
99 | 109 | run: echo "result=release/${{ steps.version.outputs.match }}" >>$GITHUB_OUTPUT |
|
0 commit comments