|
46 | 46 | # Get the next milestone branch name, the jq command will return the second |
47 | 47 | # branch name in the list of branches matching the pattern develop-YYYY-MM-DD |
48 | 48 | # The first branch is the current branch, the second one is the next milestone |
49 | | - # branch. If there is no next milestone branch, then jq will return null. |
| 49 | + # branch. If t- name: Create new release with auto generated release note |
| 50 | + # Do not generate release for beta release tagged on develop branch. |
| 51 | + if: ${{ github.ref == 'refs/heads/master' }} |
| 52 | + env: |
| 53 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 54 | + run: | |
| 55 | + gh release create "${{ steps.tagging.outputs.new_tag }}" --generate-notes --repo "${{ github.repository }}"here is no next milestone branch, then jq will return null. |
50 | 56 | next_milestone_branch=$( \ |
51 | 57 | gh api \ |
52 | 58 | -H "Accept: application/vnd.github+json" \ |
@@ -145,18 +151,13 @@ jobs: |
145 | 151 | milestone_pattern: '\d{4}-\d{2}-\d{2}' |
146 | 152 |
|
147 | 153 | # Drafts your next Release notes as Pull Requests are merged into "master" |
148 | | - - name: Create Release with Release Notes |
149 | | - uses: release-drafter/release-drafter@v6 |
150 | | - if: ${{ github.base_ref == 'master' }} |
151 | | - with: |
152 | | - config-name: release-drafter-config.yml |
153 | | - disable-autolabeler: true |
154 | | - publish: true |
155 | | - tag: ${{ steps.tagging-release.outputs.new_tag }} |
156 | | - version: ${{ steps.tagging-release.outputs.new_tag }} |
157 | | - name: ${{ steps.tagging-release.outputs.new_tag }} |
| 154 | + - name: Create new release with auto generated release note |
| 155 | + # Do not generate release for beta release tagged on develop branch. |
| 156 | + if: ${{ github.ref == 'refs/heads/master' }} |
158 | 157 | env: |
159 | 158 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 159 | + run: | |
| 160 | + gh release create "${{ steps.tagging-release.outputs.new_tag }}" --generate-notes --repo "${{ github.repository }}" |
160 | 161 |
|
161 | 162 | # Close the milestone if needed |
162 | 163 | - name: Get milestone name from tag |
|
0 commit comments