Skip to content

Commit 83ff188

Browse files
committed
workflow adjusted and version 2.7.3 released
1 parent a2417b0 commit 83ff188

File tree

269 files changed

+19878
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

269 files changed

+19878
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,50 @@ jobs:
2727
run: |
2828
for file in README.txt README.md Readme.txt Readme.md readme.txt readme.md; do
2929
if [ -f "$file" ]; then
30-
echo "::set-output name=readme_file::$file"
30+
echo "Readme file found: $file"
31+
echo "readme_file=$file" >> $GITHUB_ENV
3132
break
3233
fi
3334
done
35+
if [ -z "${{ env.readme_file }}" ]; then
36+
echo "::error::Readme file not found."
37+
exit 1
38+
fi
3439
3540
- name: Extract Release Notes
3641
id: release_notes
3742
run: |
38-
if [[ -z "${{ steps.find_readme.outputs.readme_file }}" ]]; then
39-
echo "::error::Readme file not found."
43+
changelog_section_start="== Changelog =="
44+
readme_file="${{ env.readme_file }}"
45+
46+
# Read lines from the changelog section
47+
in_changelog=0
48+
release_notes=""
49+
while IFS= read -r line; do
50+
# Start extracting once we find the changelog section
51+
if [[ "$line" == "$changelog_section_start" ]]; then
52+
in_changelog=1
53+
continue
54+
fi
55+
56+
# Stop extracting if we reach another section or blank line
57+
if [[ $in_changelog -eq 1 && "$line" =~ ^== ]]; then
58+
break
59+
fi
60+
61+
# Add valid lines to the release notes
62+
if [[ $in_changelog -eq 1 && -n "$line" ]]; then
63+
release_notes+="$line\n"
64+
fi
65+
done < "$readme_file"
66+
67+
# Check if release notes were extracted
68+
if [[ -z "$release_notes" ]]; then
69+
echo "::error::Failed to extract release notes from the changelog section."
4070
exit 1
4171
fi
4272
43-
release_notes=$(grep '== Changelog ==' "${{ steps.find_readme.outputs.readme_file }}" | head -n -1 | tail -n +2)
73+
# Set output
4474
echo "::set-output name=notes::$release_notes"
4575
4676
- name: Create GitHub Release
@@ -53,4 +83,4 @@ jobs:
5383
env:
5484
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
5585
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE.txt

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

assets/css/wpnextpreviouslink-admin.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/wpnextpreviouslink-public.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/wpnextpreviouslink-setting.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/icons/icon_arrow_down.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

assets/icons/icon_arrow_up.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

assets/icons/icon_back.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)