forked from dracut-ng/dracut-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): dracutdevs/dracut --> dracut-ng/dracut-ng
- Loading branch information
1 parent
2e025eb
commit 8906474
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|