aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/update-dotnet-install-script.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/update-dotnet-install-script.yml b/.github/workflows/update-dotnet-install-script.yml
index 30a5aa4..72d0609 100644
--- a/.github/workflows/update-dotnet-install-script.yml
+++ b/.github/workflows/update-dotnet-install-script.yml
@@ -35,8 +35,11 @@ jobs:
git add src/dotnet/scripts/vendor/dotnet-install.sh
git commit -m 'Automated dotnet-install script update' || export NO_UPDATES=true
- # Push
+ # Bump version and push
if [ "$NO_UPDATES" != "true" ] ; then
+ echo "$(jq --indent 4 '.version = (.version | split(".") | map(tonumber) | .[2] += 1 | join("."))' src/dotnet/devcontainer-feature.json)" > src/dotnet/devcontainer-feature.json
+ git add src/dotnet/devcontainer-feature.json
+ git commit -m 'Bump version'
git push origin "$branch"
gh api \
--method POST \