From 54cf8ed70673aaf18fe2096766c174dec5fcd810 Mon Sep 17 00:00:00 2001 From: Rid Shakeel Date: Sun, 3 Nov 2024 13:37:43 -0800 Subject: [PATCH] workflow test --- .github/workflows/release.yaml | 15 +++++++++++++-- test/base/base.sh | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dfbb9c6..b737ce7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,10 +20,21 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Publish + - name: Get next version + uses: reecetech/version-increment@2023.10.2 + id: version + with: + scheme: calver + increment: patch + + - name: Update devcontainer-feature.json version + run: | + jq --arg new_version "${{ steps.version.outputs.version }}" '.version = $new_version' src/base/devcontainer-feature.json > src/base/devcontainer-feature.json.tmp && mv src/base/devcontainer-feature.json.tmp src/base/devcontainer-feature.json + + - name: Release uses: devcontainers/action@v1 with: publish-features: "true" base-path-to-features: "./src" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/test/base/base.sh b/test/base/base.sh index c4b2800..0416746 100644 --- a/test/base/base.sh +++ b/test/base/base.sh @@ -27,6 +27,7 @@ check "check for pyenv" pyenv --version # Check language versions check "check for node" node --version +check "check for bun" bun --version check "check for java" java --version check "check for ruby" ruby --version check "check for python" python --version