File tree 1 file changed +1
-23
lines changed 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -29,38 +29,16 @@ jobs:
29
29
30
30
- id : extract-changelog
31
31
uses : sean0x42/markdown-extract@v2
32
- if : steps.version.outputs.is_stable == 'true'
33
32
with :
34
33
file : CHANGELOG.md
35
34
pattern : ${{ github.ref_name }}
36
35
no-print-matched-heading : true
37
36
- name : Create Release
38
37
uses : softprops/action-gh-release@v1
39
- if : steps.version.outputs.is_stable == 'true'
40
38
with :
41
- prerelease : false
39
+ prerelease : steps.version.outputs.is_stable != 'true'
42
40
body : |
43
41
## Changelog
44
42
${{ steps.extract-changelog.outputs.markdown }}
45
43
files : |
46
44
*.vsix
47
-
48
- - id : changelog-url
49
- name : Generate Changelog Url
50
- if : steps.version.outputs.is_stable != 'true'
51
- run : |
52
- SERVER_URL=${{ github.server_url }}
53
- REPO=${{ github.repository }}
54
- REF=${{ github.ref_name }}
55
-
56
- echo "url=$SERVER_URL/$REPO/blob/$REF/CHANGELOG.md#unreleased" >> $GITHUB_OUTPUT
57
- - name : Create Pre-Release
58
- uses : softprops/action-gh-release@v1
59
- if : steps.version.outputs.is_stable != 'true'
60
- with :
61
- prerelease : true
62
- body : |
63
- This is a **pre-release**. Check the [Unreleased Section](${{ steps.changelog-url.outputs.url }})
64
- of the changelog for changes.
65
- files : |
66
- *.vsix
You can’t perform that action at this time.
0 commit comments