Переглянути джерело

Merge pull request #929 from Avaiga/fix/version-input

fix: add input version
João André 1 рік тому
батько
коміт
cbe9c81ad1
1 змінених файлів з 9 додано та 1 видалено
  1. 9 1
      .github/workflows/build-and-release.yml

+ 9 - 1
.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]