From d098d7953b1b1c2bc0733cc1511c2629fb3b81a1 Mon Sep 17 00:00:00 2001 From: Joao Andre Date: Mon, 4 Mar 2024 12:06:10 -0300 Subject: [PATCH] fix: add input version --- .github/workflows/build-and-release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index dee901f1e3..f696a35b34 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -11,6 +11,9 @@ on: description: "The type of release to be made (dev or production)" default: "dev" required: true + target_version: + description: "The version of the package to be released" + required: true jobs: fetch-versions: @@ -25,10 +28,15 @@ jobs: NEW_VERSION: ${{ steps.version-setup.outputs.NEW_VERSION }} steps: - uses: actions/checkout@v4 + - name: Extract commit hash + shell: bash + run: echo "HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + id: extract_hash + - name: Setup Version id: version-setup run: | - python tools/release/setup_version.py ALL ${{ github.event.inputs.release_type }} ${{ github.event.inputs.version }} ${{ steps.extract_branch.outputs.branch }} >> $GITHUB_OUTPUT + python tools/release/setup_version.py ALL ${{ github.event.inputs.release_type }} ${{ github.event.inputs.target_version }} ${{ steps.extract_branch.outputs.branch }} >> $GITHUB_OUTPUT build-and-release-taipy-packages: needs: [fetch-versions]