mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Add PlatformIO badge to README
This commit is contained in:
		| @@ -7,13 +7,13 @@ cd "$(dirname "$0")/../.." | ||||
| VERSION="$1" | ||||
| DATE=$(date +%F) | ||||
| TAG="v$VERSION" | ||||
| VERSION_REGEX="[0-9a-z\\.\\-]+" | ||||
| VERSION_REGEX='[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?' | ||||
|  | ||||
| update_version_in_source () { | ||||
| 	IFS=".-" read MAJOR MINOR REVISION EXTRA < <(echo "$VERSION") | ||||
| 	UNDERLINE=$(printf -- '-%.0s' $(seq 1 ${#TAG})) | ||||
|  | ||||
| 	sed -i~ -bE "s/version=$VERSION_REGEX/version=$VERSION/; s|ardu-badge.com/ArduinoJson/$VERSION_REGEX|ardu-badge.com/ArduinoJson/$VERSION|; " README.md | ||||
| 	sed -i~ -bE "1,20{s/$VERSION_REGEX/$VERSION/g}" README.md | ||||
| 	rm README.md~ | ||||
|  | ||||
| 	sed -i~ -bE "4s/HEAD/$TAG ($DATE)/; 5s/-+/$UNDERLINE/" CHANGELOG.md | ||||
|   | ||||
		Reference in New Issue
	
	Block a user