diff --git a/.github/workflows/scripts/retrieve-versions.sh b/.github/workflows/scripts/retrieve-versions.sh old mode 100644 new mode 100755 diff --git a/.github/workflows/scripts/test-extensions-creators-build.sh b/.github/workflows/scripts/test-extensions-creators-build.sh old mode 100644 new mode 100755 diff --git a/.github/workflows/test-extension-workflows-master.yml b/.github/workflows/test-extension-workflows-master.yml index fd501374665..4287e58f110 100644 --- a/.github/workflows/test-extension-workflows-master.yml +++ b/.github/workflows/test-extension-workflows-master.yml @@ -1,4 +1,4 @@ -name: Test Extension workflows +name: Test Extension workflows - Master (3.x) on: schedule: @@ -11,6 +11,7 @@ defaults: jobs: test-extensions-creators-and-update-paths: + if: ${{ github.repository_owner == 'rancher' }} runs-on: ubuntu-latest outputs: test-extensions-creators-and-update-paths-job-status: ${{ job.status }} @@ -23,6 +24,7 @@ jobs: id: test-extensions-and-creators shell: bash retrieve-tags-master: + if: ${{ github.repository_owner == 'rancher' }} runs-on: ubuntu-latest outputs: SHELL_TAG: ${{ steps.retrieve-data.outputs.SHELL_TAG }} @@ -100,8 +102,8 @@ jobs: OUTPUT_ARRAY=("${{ needs.test-extensions-creators-and-update-paths-job-status.outputs.test-legacy-v1-job-status }}" "${{ needs.retrieve-tags-master.outputs.tags-job-status }}" "${{ needs.test-build-extension-charts-master.outputs.build-job-status }}" "${{ needs.test-build-extension-catalog-master.outputs.build-extension-catalog-job-status }}" "${{ needs.test-release-shell-pkg-master.outputs.build-release-shell-creators-status }}" "${{ needs.test-release-creators-pkg-master.outputs.build-release-shell-creators-status }}") JOB_NAME_ARRAY=("test-extensions-creators-and-update-paths-job-status" "retrieve-tags-master" "test-build-extension-charts-master" "test-build-extension-catalog-master" "test-release-shell-pkg-master" "test-release-creators-pkg-master") - if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ]]; then - MSG_PREFIX="\nWorkflows testing for extensions failed! 🆘" + if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ] || [ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + MSG_PREFIX="\nWorkflows testing for extensions failed! ❌" else MSG_PREFIX="\nWorkflows testing for extensions succedded! ✅" fi @@ -113,7 +115,9 @@ jobs: for index in "${!OUTPUT_ARRAY[@]}" do if [[ ${OUTPUT_ARRAY[$index]} == "failure" ]]; then - EMOJI="🆘" + EMOJI="❌" + elif [[ ${OUTPUT_ARRAY[$index]} == "" ]]; then + EMOJI="NO JOB STATUS! ⭕" else EMOJI="✅" fi diff --git a/.github/workflows/test-extension-workflows-release-2.8.yml b/.github/workflows/test-extension-workflows-release-2.8.yml index f5e7917b08f..744096c2d04 100644 --- a/.github/workflows/test-extension-workflows-release-2.8.yml +++ b/.github/workflows/test-extension-workflows-release-2.8.yml @@ -1,4 +1,4 @@ -name: Test Extension workflows +name: Test Extension workflows - Release 2.8 (1.x) on: schedule: @@ -11,6 +11,7 @@ defaults: jobs: retrieve-tags-release-2-dot-8: + if: ${{ github.repository_owner == 'rancher' }} runs-on: ubuntu-latest outputs: SHELL_TAG: ${{ steps.retrieve-data.outputs.SHELL_TAG }} @@ -88,8 +89,8 @@ jobs: OUTPUT_ARRAY=("${{ needs.retrieve-tags-release-2-dot-8.outputs.tags-job-status }}" "${{ needs.test-build-extension-charts-release-2-dot-8.outputs.build-job-status }}" "${{ needs.test-build-extension-catalog-release-2-dot-8.outputs.build-extension-catalog-job-status }}" "${{ needs.test-release-shell-pkg-release-2-dot-8.outputs.build-release-shell-creators-status }}" "${{ needs.test-release-creators-pkg-release-2-dot-8.outputs.build-release-shell-creators-status }}") JOB_NAME_ARRAY=("retrieve-tags-release-2-dot-8" "test-build-extension-charts-release-2-dot-8" "test-build-extension-catalog-release-2-dot-8" "test-release-shell-pkg-release-2-dot-8" "test-release-creators-pkg-release-2-dot-8") - if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ]]; then - MSG_PREFIX="\nWorkflows testing for extensions failed! 🆘" + if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ] || [ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + MSG_PREFIX="\nWorkflows testing for extensions failed! ❌" else MSG_PREFIX="\nWorkflows testing for extensions succedded! ✅" fi @@ -101,7 +102,9 @@ jobs: for index in "${!OUTPUT_ARRAY[@]}" do if [[ ${OUTPUT_ARRAY[$index]} == "failure" ]]; then - EMOJI="🆘" + EMOJI="❌" + elif [[ ${OUTPUT_ARRAY[$index]} == "" ]]; then + EMOJI="NO JOB STATUS! ⭕" else EMOJI="✅" fi diff --git a/.github/workflows/test-extension-workflows-release-2.9.yml b/.github/workflows/test-extension-workflows-release-2.9.yml index 19f0f1925c8..68f2699ca2f 100644 --- a/.github/workflows/test-extension-workflows-release-2.9.yml +++ b/.github/workflows/test-extension-workflows-release-2.9.yml @@ -1,4 +1,4 @@ -name: Test Extension workflows +name: Test Extension workflows - Release 2.9 (2.x) on: schedule: @@ -11,6 +11,7 @@ defaults: jobs: retrieve-tags-release-2-dot-9: + if: ${{ github.repository_owner == 'rancher' }} runs-on: ubuntu-latest outputs: SHELL_TAG: ${{ steps.retrieve-data.outputs.SHELL_TAG }} @@ -88,8 +89,8 @@ jobs: OUTPUT_ARRAY=("${{ needs.retrieve-tags-release-2-dot-9.outputs.tags-job-status }}" "${{ needs.test-build-extension-charts-release-2-dot-9.outputs.build-job-status }}" "${{ needs.test-build-extension-catalog-release-2-dot-9.outputs.build-extension-catalog-job-status }}" "${{ needs.test-release-shell-pkg-release-2-dot-9.outputs.build-release-shell-creators-status }}" "${{ needs.test-release-creators-pkg-release-2-dot-9.outputs.build-release-shell-creators-status }}") JOB_NAME_ARRAY=("retrieve-tags-release-2-dot-9" "test-build-extension-charts-release-2-dot-9" "test-build-extension-catalog-release-2-dot-9" "test-release-shell-pkg-release-2-dot-9" "test-release-creators-pkg-release-2-dot-9") - if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ]]; then - MSG_PREFIX="\nWorkflows testing for extensions failed! 🆘" + if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ] || [ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + MSG_PREFIX="\nWorkflows testing for extensions failed! ❌" else MSG_PREFIX="\nWorkflows testing for extensions succedded! ✅" fi @@ -101,7 +102,9 @@ jobs: for index in "${!OUTPUT_ARRAY[@]}" do if [[ ${OUTPUT_ARRAY[$index]} == "failure" ]]; then - EMOJI="🆘" + EMOJI="❌" + elif [[ ${OUTPUT_ARRAY[$index]} == "" ]]; then + EMOJI="NO JOB STATUS! ⭕" else EMOJI="✅" fi