Skip to content

Commit

Permalink
Merge pull request #929 from Avaiga/fix/version-input
Browse files Browse the repository at this point in the history
fix: add input version
  • Loading branch information
joaoandre-avaiga authored Mar 4, 2024
2 parents d00449c + d098d79 commit cbe9c81
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand Down

0 comments on commit cbe9c81

Please sign in to comment.