Skip to content

Commit

Permalink
script not scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
felipesu19 committed May 2, 2023
1 parent 8c6d6c6 commit baad786
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ jobs:
- name: Create PR
run: |
LAST_PR=$(gh pr list --repo ${{ github.repository }} --limit 1 --state merged --search "Release version" --json number | jq -r '.[0].number')
RELEASE_NOTES=$(./scripts/workflows/release-notes.sh $LAST_PR ${{ env.new_version }})
RELEASE_NOTES=$(./script/workflows/generate-release-notes.sh $LAST_PR ${{ env.new_version }})
gh pr create \
--title "Release version ${{ env.new_version }}" \
--body $RELEASE_NOTES \
--body-file release-notes.txt \
--base main \
--head release/${{ env.new_version }}
env:
Expand Down
6 changes: 6 additions & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Release 0.25.7
- Add working lock file and update script to add it to the npm workspace root \n
- Make pre-prepare run off of hooks \n
- @muzimuzhi - Upgrade vsce 2.11.0 to @vscode/vsce version 2.19.0 \n
- Update workflow file \n
- Release version 0.25.6 \n
7 changes: 2 additions & 5 deletions script/workflows/generate-release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ CHANGELIST=$(gh pr list --repo github/vscode-github-actions --base main --state

# store the release notes in a variable so we can use it later

RELEASE_NOTES="Release $NEW_RELEASE"
echo "Release $NEW_RELEASE" >> release-notes.txt

UPDATED=$(echo $CHANGELIST | jq -r '.[].title' | while read line; do
echo " - $line \n";
echo " - $line \n" >> release-notes.txt
done)
RELEASE_NOTES="$RELEASE_NOTES\n$UPDATED"
echo $RELEASE_NOTES

0 comments on commit baad786

Please sign in to comment.