publish: new_version=$$( cat Cargo.toml | grep '^version' | cut -d '"' -f 2 | awk 'BEGIN{ FS="."; OFS="."; } { print $$1, $$2, $$3+1; }' ); sed -i "" -r -e "/^version/s/[0-9.]+/$$new_version/" Cargo.toml git commit Cargo.toml -m "Bump version" cargo publish run: rm vv.auto.tfvars.json || true cargo run -- -i inputa.yaml -i inputb.yaml cat vv.auto.tfvars.json