File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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="" }
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
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
You can’t perform that action at this time.
0 commit comments