Open scacner opened 3 years ago
One possible action step that has been half-baked/thought of:
run: |
VERSION=$(echo $GITHUB_REF | sed -E 's/.*(v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))/\1/')
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/g" custom_components/badnest/manifest.json
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "update manifest version"
git push
Release-Drafter auto sets the new version number to be released. See if there's a way to auto-increment the
version
key inmanifest.json
with the version number that Release-Drafter determines.