Skip to content

Commit 2830b80

Browse files
author
Lasim
committed
fix: update release notes extraction to reference the correct paths for version and changelog
1 parent 8d1be5f commit 2830b80

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/backend-release-pr.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ jobs:
5757
- name: Extract release notes
5858
id: extract-release-notes
5959
run: |
60-
# Get the current version
61-
VERSION=$(cat services/backend/package.json | grep '"version"' | cut -d'"' -f4)
60+
# Get the current version from the package.json in the current working directory
61+
VERSION=$(cat package.json | grep '"version"' | cut -d'"' -f4)
6262
echo "Extracting release notes for version $VERSION"
6363
6464
# Extract the changelog section for this version
65-
if [ -f services/backend/CHANGELOG.md ]; then
65+
if [ -f CHANGELOG.md ]; then
6666
# Look for the version header and extract content until the next version or end of file
6767
RELEASE_NOTES=$(awk -v version="$VERSION" '
6868
BEGIN { found=0; content="" }
@@ -73,7 +73,7 @@ jobs:
7373
found && /^##? [0-9]+\.[0-9]+\.[0-9]+/ { exit }
7474
found { content = content $0 "\n" }
7575
END { print content }
76-
' services/backend/CHANGELOG.md)
76+
' CHANGELOG.md)
7777
7878
# Remove leading/trailing whitespace and save to output
7979
echo "release_notes<<EOF" >> $GITHUB_OUTPUT
@@ -86,6 +86,7 @@ jobs:
8686
echo "No CHANGELOG.md found"
8787
echo "release_notes=" >> $GITHUB_OUTPUT
8888
fi
89+
working-directory: services/backend
8990
- name: Create pull request
9091
uses: peter-evans/create-pull-request@v7
9192
id: cpr

0 commit comments

Comments
 (0)