From ce062568085066c6bba1bf9f5b21cf670445922a Mon Sep 17 00:00:00 2001 From: Dipin <26918585+dipinknair@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:07:54 -0500 Subject: [PATCH] Maint: Modify nightly run (#712) Co-authored-by: pyansys-ci-bot --- .github/workflows/ci_cd.yml | 17 +++++++++-------- doc/changelog.d/712.changed.md | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 doc/changelog.d/712.changed.md diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index f9785e16d..da423fb57 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -28,7 +28,7 @@ env: LATEST_STABLE_DOCKER_IMAGE_VERSION: '24.1.0' # DEV_REVN & its Docker image are used in scheduled or registry package runs DEV_REVN: '242' - DEV_DOCKER_IMAGE_VERSION: '24.2.0' + DEV_DOCKER_IMAGE_VERSION: '24.2_candidate' MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} MEILISEARCH_HOST_URL: ${{ vars.MEILISEARCH_HOST_URL }} MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }} @@ -107,12 +107,12 @@ jobs: steps: - id: save-versions run: | - if ${{ github.event_name == 'schedule' }}; then # || ${{ github.event.registry_package.package_version.container_metadata.tag.name == 'mechanical:24.2.0' }}; then + if ${{ github.event_name == 'schedule' }}; then # 242 echo "test_revn=${{ env.DEV_REVN }}" >> $GITHUB_OUTPUT - # ghcr.io/ansys/mechanical:24.2.0 + # ghcr.io/ansys/mechanical:24.2_candidate echo "test_container=${{ env.DOCKER_PACKAGE }}:${{ env.DEV_DOCKER_IMAGE_VERSION }}" >> $GITHUB_OUTPUT - # 24.2.0 + # 24.2_candidate echo "test_docker_image_version=${{ env.DEV_DOCKER_IMAGE_VERSION }}" >> $GITHUB_OUTPUT else # 241 @@ -133,10 +133,11 @@ jobs: steps: - id: set-matrix run: | - # Configure matrix for "tests" job - # Run all mechanical versions for tags and nightly scheduled runs, otherwise run the test docker image version only - if ${{ github.event_name == 'push' }} && ${{ contains(github.ref, 'refs/tags') }} || ${{ github.event_name == 'schedule' }}; then - echo "matrix={\"mechanical-version\":['23.1.0', '23.2.0', '24.1.0', '24.2.0'],\"experimental\":[false]}" >> $GITHUB_OUTPUT + # Run all stable mechanical versions release tags + # For nightly scheduled runs use pre-release (242_candidate) + # For pull requests and merges use latest stable version (241) + if ${{ github.event_name == 'push' }} && ${{ contains(github.ref, 'refs/tags') }}; then + echo "matrix={\"mechanical-version\":['23.1.0', '23.2.0', '24.1.0'],\"experimental\":[false]}" >> $GITHUB_OUTPUT else echo "matrix={\"mechanical-version\":['${{ needs.revn-variations.outputs.test_docker_image_version }}'],\"experimental\":[false]}" >> $GITHUB_OUTPUT fi diff --git a/doc/changelog.d/712.changed.md b/doc/changelog.d/712.changed.md new file mode 100644 index 000000000..958540923 --- /dev/null +++ b/doc/changelog.d/712.changed.md @@ -0,0 +1 @@ +Maint: Modify nightly run \ No newline at end of file