Skip to content

Commit

Permalink
verify generate release note github action
Browse files Browse the repository at this point in the history
Signed-off-by: xudong liu <[email protected]>
  • Loading branch information
XudongLiuHarold committed May 29, 2024
1 parent 56eaa6a commit 9733366
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/generate-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "valid=$(./hack/match-release-tag.sh >/dev/null 2>&1)" >> $GITHUB_OUTPUT
- name: Find Second Latest Release Tag
# if: ${{ step.check.output.valid }}
# if: ${{ steps.check.output.valid }}
id: find
run: |
SEMVER_REGEX='^[[:space:]]{0,}v[[:digit:]]{1,}\.[[:digit:]]{1,}\.[[:digit:]]{1,}(-(alpha|beta|rc)\.[[:digit:]]{1,}){0,1}[[:space:]]{0,}$'
Expand All @@ -58,12 +58,12 @@ jobs:
fi
- name: Generate Release Note
# if: ${{ step.check.output.valid }}
# if: ${{ steps.check.output.valid }}
run: |
if {{ step.find.pre_release}}; then
gh release create ${{ step.find.latest_release_tag }} --verify-tag --draft --generate-notes --notes-start-tag ${{ step.find.second_latest_release_tag}} --prerelease
if ${{ steps.find.pre_release}}; then
gh release create ${{ steps.find.latest_release_tag }} --verify-tag --draft --generate-notes --notes-start-tag ${{ steps.find.second_latest_release_tag }} --prerelease
else
gh release create ${{ step.find.latest_release_tag }} --verify-tag --draft --generate-notes --notes-start-tag ${{ step.find.second_latest_release_tag}}
gh release create ${{ steps.find.latest_release_tag }} --verify-tag --draft --generate-notes --notes-start-tag ${{ steps.find.second_latest_release_tag }}
fi
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 9733366

Please sign in to comment.