Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed Feb 17, 2024
1 parent c507905 commit f30b3f6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
echo "NEW_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
echo "NEW_BRANCH=release-${{ github.event.release.tag_name }}" >> $GITHUB_ENV
echo "COMMIT_MSG=feat(docs|fw): release EEST $NEW_VERSION" >> $GITHUB_ENV
echo "COMMIT_MSG=feat(docs|fw): post ${{ github.event.release.tag_name }} release changes" >> $GITHUB_ENV
- name: Update version in `setup.cfg`
run: |
Expand All @@ -36,17 +36,18 @@ jobs:
env:
RELEASE_DATE: $(date +'%Y-%m-%d')
run: |
# Replace unreleased link with the new release information
ESCAPED_LINK="https:\/\/github.com\/ethereum\/execution-spec-tests\/releases\/tag\/${NEW_VERSION}"
RELEASE_NAME=$(gh release view ${NEW_VERSION} --json body -q '.body' | sed -n '1p')
sed -i "s/## 🔜 \[Unreleased\](https:\/\/github.com\/ethereum\/execution-spec-tests\/releases\/tag\/version) - 2024-xx-xx/## 🔜 [${NEW_VERSION}](${ESCAPED_LINK}) - ${RELEASE_DATE}: ${FIRST_LINE}\n\n&/" docs/CHANGELOG.md
# Replace unreleased link with the new release information
sed -i "s/^## 🔜 \[Unreleased\].*/## 🔜 [${NEW_VERSION}](https:\/\/github.com\/ethereum\/execution-spec-tests\/releases\/tag\/${NEW_VERSION}) - \
$(date +%Y-%m-%d): ${RELEASE_NAME}/" docs/CHANGELOG.md
# Append template for the next unreleased section
sed -i '/\*\*Key:\*\*/r docs/changelog_section_template.md' docs/CHANGELOG.md
sed -i "/\*\*Key:\*\*/r<(tail -n +5 docs/changelog_section_template.md)" docs/CHANGELOG.md
git add docs/CHANGELOG.md
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
Expand Down

0 comments on commit f30b3f6

Please sign in to comment.