diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 4590905e9..748bafe4e 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -2,9 +2,11 @@ name: Preview build with VEDA UI on: workflow_dispatch: + inputs: + VERSION_NUMBER: + type: string repository_dispatch: types: [update-version] - pull_request: permissions: contents: write @@ -27,7 +29,7 @@ jobs: - name: Set Version Variable id: set-version - run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || 'v5.11.0' }}" >> $GITHUB_ENV + run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || inputs.VERSION_NUMBER }}" >> $GITHUB_ENV - name: git config shell: bash @@ -47,7 +49,7 @@ jobs: uses: peter-evans/create-pull-request@v7 with: commit-message: "Update UI to ${{ env.VERSION }}" - title: "Update submodule to version${{ env.VERSION }}" - body: "This PR updates the submodule to version `${{ env.VERSION }}`." + title: "ci: Update submodule to version ${{ env.VERSION }}" + body: "This is an automatic PR that updates the submodule to version `${{ env.VERSION }}`." base: develop - branch: ci-${{ env.VERSION }} \ No newline at end of file + branch: ci-update-${{ env.VERSION }} \ No newline at end of file