You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Delete up to and including the line containing "## What's Changed"
53
+
sed -i "1,/## What's Changed/d" changelog_temp.txt
54
+
46
55
# Convert changelog entries from markdown link format to simplified "* description (username)" format
47
56
# First remove all PR links
48
57
sed -i -re 's/( \()?\[\\#[0-9]+\]\([^)]*\),? ?\)?//g' changelog_temp.txt
49
58
# Remove markdown link formatting from usernames in parentheses
50
59
sed -i -re 's/\[([^]]*)\]\(https:\/\/github\.com\/[^)]*\)/\1/g' changelog_temp.txt
51
-
# Create new changelog format: add version header, remove lines 2-3, format section headers, remove ## headers with following line, prepend to existing changelog
52
-
echo"VERSION[${RELEASE_VERSION#v}][$(date +'%Y/%m/%d')]"| cat - changelog_temp.txt | sed '2,3d'| sed -re 's/^### (.*)/\n--- \1 ---/'| sed -e '/^##.*/,+1 d'| cat - changelog.txt > changelog_new.txt
60
+
# Create new changelog format: add version header, format section headers, prepend to existing changelog
# These checks are run for PRs preparing a release
2
+
name: Release Check
3
+
on:
4
+
pull_request:
5
+
types:
6
+
- opened
7
+
- synchronize
8
+
# ready_for_review is needed for the workaround described at https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs
9
+
- ready_for_review
10
+
branches:
11
+
- 'dev'
12
+
paths:
13
+
- 'manifest.xml'
14
+
- 'changelog.txt'# To detect if this is a release PR
# The initial draft release must target dev for the changelog generation, but the final release should use the last commit on master to avoid tagging a wrong commit
# draft: always-true is needed for the workaround described at https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs
0 commit comments