File tree Expand file tree Collapse file tree 2 files changed +423
-108
lines changed Expand file tree Collapse file tree 2 files changed +423
-108
lines changed Original file line number Diff line number Diff line change 32
32
- name : Clone the project and start release
33
33
run : |
34
34
set -e
35
- git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} project
35
+ git clone https://x-access-token:${{ secrets.RDKCM_RDKE }}@github.com/${{ github.repository }} project
36
36
cd project
37
37
git fetch --all
38
38
git checkout main || git checkout -b main origin/main
51
51
# Extract version from PR description
52
52
PR_DESC="${{ github.event.pull_request.body }}"
53
53
# Get top tag from CHANGELOG.md
54
- TOP_TAG=$(grep -m 1 -oP '^#### \[ \K[^\] ]+' CHANGELOG.md)
54
+ TOP_TAG=$(grep -m 1 -oP '^##\s+ \K[0-9]+\.[0-9]+\.[0-9 ]+' CHANGELOG.md)
55
55
if [[ -z "$TOP_TAG" ]]; then
56
56
echo "No version found in CHANGELOG.md!"
57
57
exit 1
You can’t perform that action at this time.
0 commit comments