From 89ded3b2ae8024678b53784a2f569ecfb89b9fa2 Mon Sep 17 00:00:00 2001 From: "dare-renovate[bot]" <131777703+dare-renovate[bot]@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:35:04 +0100 Subject: [PATCH] chore(deps): update swanseauniversitymedical/workflows action to v4 (#30) Co-authored-by: dare-renovate[bot] <129118232+dare-renovate[bot]@users.noreply.github.enterprise.com> Co-authored-by: rdash99 --- .github/workflows/on-pr-update.yaml | 42 +++---------------------- .github/workflows/on-release.yaml | 48 +++-------------------------- 2 files changed, 9 insertions(+), 81 deletions(-) diff --git a/.github/workflows/on-pr-update.yaml b/.github/workflows/on-pr-update.yaml index 45c3fd8..adb1279 100644 --- a/.github/workflows/on-pr-update.yaml +++ b/.github/workflows/on-pr-update.yaml @@ -17,21 +17,11 @@ concurrency: jobs: - slack: - # Open a new PR thread on Slack for this CI run. - uses: SwanseaUniversityMedical/workflows/.github/workflows/slack-pr-thread.yaml@v3.0.0 - with: - slack-channel: ${{ vars.SLACK_CHANNEL }} - secrets: - slack-token: ${{ secrets.SLACK_TOKEN }} - changes: # Detect which files have been changed on this PR's full history - needs: slack - uses: SwanseaUniversityMedical/workflows/.github/workflows/changes.yaml@v3.0.0 + uses: SwanseaUniversityMedical/workflows/.github/workflows/changes-pr.yaml@v4.1.0 with: slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} filters: | hive-container: - './.github/workflows/on-pr-update.yaml' @@ -45,11 +35,9 @@ jobs: hive-container: # Build the container and push it as :pr-42 and :pr-42-fe45b3h - needs: - - slack - - changes + needs: changes if: fromJSON(needs.changes.outputs.changes).hive-container == 'true' - uses: SwanseaUniversityMedical/workflows/.github/workflows/on-pr-update-container.yaml@v3.0.0 + uses: SwanseaUniversityMedical/workflows/.github/workflows/on-pr-update-container.yaml@v4.1.0 with: job-name: hive-container container-registry: ${{ vars.HARBOR_REGISTRY }} @@ -57,7 +45,6 @@ jobs: container-registry-project: ${{ vars.HARBOR_PROJECT }} container-registry-repo: ${{ vars.HARBOR_REPO }} slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} build-command: | docker build -t $IMAGE -f containers/hive/Dockerfile . secrets: @@ -67,11 +54,9 @@ jobs: chart: # Build the chart and push it as :pr-42 and :pr-42-fe45b3h - needs: - - slack - - changes + needs: changes if: fromJSON(needs.changes.outputs.changes).chart == 'true' - uses: SwanseaUniversityMedical/workflows/.github/workflows/on-pr-update-chart.yaml@v3.0.0 + uses: SwanseaUniversityMedical/workflows/.github/workflows/on-pr-update-chart.yaml@v4.1.0 with: job-name: hive-chart chart: charts/** @@ -80,26 +65,9 @@ jobs: chart-registry-project: ${{ vars.HARBOR_PROJECT }} chart-registry-repo: ${{ vars.HARBOR_REPO }} slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} test-command: | helm template $CHART --values charts/hive/values.yaml secrets: chart-registry-token: ${{ secrets.HARBOR_TOKEN }} slack-token: ${{ secrets.SLACK_TOKEN }} - slack-update: - # Update the original Slack message with the final workflow status - # WARNING! ALL UPSTREAM JOBS MUST BE DECLARED HERE TO REPORT FAILURES CORRECTLY! - needs: - - slack - - changes - - hive-container - - chart - uses: SwanseaUniversityMedical/workflows/.github/workflows/slack-pr-thread.yaml@v3.0.0 - if: always() - with: - slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} - status: ${{ contains(join(needs.*.result, ','), 'failure') && ':no_entry:' || ':white_check_mark:' }} - secrets: - slack-token: ${{ secrets.SLACK_TOKEN }} diff --git a/.github/workflows/on-release.yaml b/.github/workflows/on-release.yaml index 0f2e7f5..632e05f 100644 --- a/.github/workflows/on-release.yaml +++ b/.github/workflows/on-release.yaml @@ -16,25 +16,11 @@ concurrency: jobs: - ###################################################################################################################### - # Pre-Tasks - ###################################################################################################################### - - slack: - # Open a new PR thread on Slack for this CI run - uses: SwanseaUniversityMedical/workflows/.github/workflows/slack-release-thread.yaml@v3.0.0 - with: - slack-channel: ${{ vars.SLACK_CHANNEL }} - secrets: - slack-token: ${{ secrets.SLACK_TOKEN }} - changes: # Detect which files have been changed on this PR's full history - needs: slack - uses: SwanseaUniversityMedical/workflows/.github/workflows/changes.yaml@v3.0.0 + uses: SwanseaUniversityMedical/workflows/.github/workflows/changes-release.yaml@v4.1.0 with: slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} filters: | hive-container: - './.github/workflows/on-release.yaml' @@ -52,11 +38,9 @@ jobs: hive-container: # Build the DARE Hive container and push it as :rc-1.0.0 - needs: - - slack - - changes + needs: changes if: fromJSON(needs.changes.outputs.changes).hive-container == 'true' - uses: SwanseaUniversityMedical/workflows/.github/workflows/on-release-container.yaml@v3.0.0 + uses: SwanseaUniversityMedical/workflows/.github/workflows/on-release-container.yaml@v4.1.0 with: job-name: hive-container container-registry: ${{ vars.HARBOR_REGISTRY }} @@ -65,7 +49,6 @@ jobs: container-registry-repo: ${{ vars.HARBOR_REPO }} release-tag-format: 'DARE-Hive-Container-${version}' slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} build-command: | docker build -t $IMAGE -f containers/hive/Dockerfile . secrets: @@ -82,7 +65,7 @@ jobs: - slack - changes if: fromJSON(needs.changes.outputs.changes).chart == 'true' - uses: SwanseaUniversityMedical/workflows/.github/workflows/on-release-chart.yaml@v3.0.0 + uses: SwanseaUniversityMedical/workflows/.github/workflows/on-release-chart.yaml@v4.1.0 with: job-name: chart chart-registry: ${{ vars.HARBOR_REGISTRY }} @@ -91,32 +74,9 @@ jobs: chart-registry-repo: ${{ vars.HARBOR_REPO }} release-tag-format: 'DARE-Hive-Helm-${version}' slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} chart: charts/** test-command: | helm template $CHART --values charts/hive/values.yaml secrets: chart-registry-token: ${{ secrets.HARBOR_TOKEN }} slack-token: ${{ secrets.SLACK_TOKEN }} - - ###################################################################################################################### - # Post-Tasks - ###################################################################################################################### - - slack-update: - # Update the original Slack message with the final workflow status - # WARNING! ALL UPSTREAM JOBS MUST BE DECLARED HERE TO REPORT FAILURES CORRECTLY! - needs: - - slack - - changes - - hive-container - - chart - - uses: SwanseaUniversityMedical/workflows/.github/workflows/slack-release-thread.yaml@v3.0.0 - if: always() - with: - slack-channel: ${{ vars.SLACK_CHANNEL }} - slack-thread: ${{ needs.slack.outputs.thread }} - status: ${{ contains(join(needs.*.result, ','), 'failure') && ':no_entry:' || ':white_check_mark:' }} - secrets: - slack-token: ${{ secrets.SLACK_TOKEN }}