diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index e5639e9df90..cfccb5304ca 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -158,6 +158,7 @@ jobs: ANSYS_VERSION: ${{ matrix.version.version }} standalone_suffix: ${{ matrix.version.patch }} test_docstrings: ${{ matrix.test_docstrings }} + post_branch: latest secrets: inherit docker_tests: diff --git a/.github/workflows/pydpf-post.yml b/.github/workflows/pydpf-post.yml index 71deba2c279..b040ef6a3d0 100644 --- a/.github/workflows/pydpf-post.yml +++ b/.github/workflows/pydpf-post.yml @@ -5,7 +5,7 @@ on: workflow_call: inputs: post_branch: - default: '' + default: 'main' type: string ANSYS_VERSION: required: false @@ -24,8 +24,8 @@ on: workflow_dispatch: inputs: post_branch: - description: 'PyDPF-Post branch or tag to test. Leave empty to get latest tagged version' - default: '' + description: 'PyDPF-Post branch or tag to test. Set to `latest` to get latest tagged version' + default: 'main' type: string ANSYS_VERSION: description: "ANSYS version" @@ -120,7 +120,7 @@ jobs: REPO="https://github.com/ansys/pydpf-post.git" BranchName=${{ inputs.post_branch }} echo branch="$BranchName" - if [ "$BranchName" = '' ]; + if [ "$BranchName" = 'latest' ]; then BranchName=$(git ls-remote --tags --sort="v:refname" --refs $REPO | tail -n1 | cut -d/ -f3) fi