Skip to content

Commit 34f56f6

Browse files
committed
Auto update readme when releasing a new version
1 parent 608ac62 commit 34f56f6

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

.idea/runConfigurations/Release_new_version.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<img width="40%" align="right" src="https://github.com/eltos/SimpleDialogFragments/raw/main/media/screenshot.png"/>
1818

1919
SimpleDialogFragments Library is a collection of easy to use and extendable DialogFragment's for Android.
20-
It is fully compatible with rotation changes and can be implemented with only a few lines of code.
20+
It is fully compatible with rotation changes and can be implemented with only a few lines of code.
2121

2222
A new approach of result handling ensures data integrity over rotation changes, that many other libraries lack.
2323

publish.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ nexusPublishing {
4747
}
4848
}
4949

50+
task 'update version in README manu' {
51+
doLast {
52+
ant.replaceregexp(match: '(eltos:simpledialogfragments:v?)\\d(\\.\\d)*', replace: '\\1'+VERSION, flags: 'g', byline: true) {
53+
fileset(dir: '.', includes: 'README.md')
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)