Skip to content

Commit

Permalink
fix(release): dracutdevs/dracut --> dracut-ng/dracut-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
LaszloGombos authored and Conan-Kudo committed Apr 1, 2024
1 parent 2e025eb commit 8906474
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This documents contains the necessary steps to conduct a successful release.

Get a first template with [`clog`](https://github.com/clog-tool/clog-cli)
```console
$ clog -F -r https://github.com/dracutdevs/dracut
$ clog -F -r https://github.com/dracut-ng/dracut-ng
```

2. Update the contributors list in NEWS.md
Expand Down Expand Up @@ -42,7 +42,7 @@ This documents contains the necessary steps to conduct a successful release.
Add the section from `NEWS.md` to the git tag message excluding the Rendered
view entry.

6. Create a new release on github (https://github.com/dracutdevs/dracut/releases/new)
6. Create a new release on github (https://github.com/dracut-ng/dracut-ng/releases/new)
- Add the section from `NEWS.md` to the release.

7. Open a new milestone, move all unfinished issue from the previous milestone to the new one and close the released milestone (https://github.com/dracutdevs/dracut/milestones)
7. Open a new milestone, move all unfinished issue from the previous milestone to the new one and close the released milestone (https://github.com/dracut-ng/dracut-ng/milestones)
8 changes: 4 additions & 4 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ printf "dracut-%s\n==========\n" "$NEW_VERSION" > NEWS_header_new.md
cat CONTRIBUTORS.md NEWS_body.md > NEWS_body_with_conttributors.md

# clog will always output both the new release and old release information together
clog -F --infile NEWS_body_with_conttributors.md -r https://github.com/dracutdevs/dracut | sed '1,2d' > NEWS_body_full.md
clog -F --infile NEWS_body_with_conttributors.md -r https://github.com/dracut-ng/dracut-ng | sed '1,2d' > NEWS_body_full.md

# Use diff to separate new release information and remove repeated empty lines
diff NEWS_body_with_conttributors.md NEWS_body_full.md | grep -e ^\>\ | sed s/^\>\ // | cat -s > NEWS_body_new.md
cat NEWS_header.md NEWS_header_new.md NEWS_body_new.md NEWS_body_with_conttributors.md > NEWS.md

# message for https://github.com/dracutdevs/dracut/releases/tag
# message for https://github.com/dracut-ng/dracut-ng/releases/tag
cat -s NEWS_body_new.md CONTRIBUTORS.md > release.md

# dracut-version.sh
printf "#!/bin/sh\n# shellcheck disable=SC2034\nDRACUT_VERSION=%s\n" "$NEW_VERSION" > dracut-version.sh

# Check in AUTHORS and NEWS.md
git config user.name "Dracut Release Bot"
git config user.email "<>"
git config user.name "dracutng[bot]"
git config user.email "<[email protected]>"
git commit -m "docs: update NEWS.md and AUTHORS" NEWS.md AUTHORS dracut-version.sh
git push origin main
git tag "$NEW_VERSION" -m "$NEW_VERSION"
Expand Down

0 comments on commit 8906474

Please sign in to comment.