From ab04a2b6164f6e30782f38a042d9492f23067425 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Thu, 12 Jan 2023 23:24:33 +0100 Subject: [PATCH] Add job summary to the runners release workflow (#2140) * Add and update job summaries * Fix workflow reference links * Fix / deny push to registries on PR * Rename the workflow to match the releases repo --- .../{runners.yaml => release-runners.yaml} | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) rename .github/workflows/{runners.yaml => release-runners.yaml} (61%) diff --git a/.github/workflows/runners.yaml b/.github/workflows/release-runners.yaml similarity index 61% rename from .github/workflows/runners.yaml rename to .github/workflows/release-runners.yaml index 3cb57a2b..6d27b58d 100644 --- a/.github/workflows/runners.yaml +++ b/.github/workflows/release-runners.yaml @@ -3,18 +3,6 @@ name: Runners # Revert to https://github.com/actions-runner-controller/releases#releases # for details on why we use this approach on: - pull_request: - types: - - opened - - synchronize - - reopened - branches: - - 'master' - paths: - - 'runner/**' - - '!runner/Makefile' - - '.github/workflows/runners.yaml' - - '!**.md' # We must do a trigger on a push: instead of a types: closed so GitHub Secrets # are available to the workflow run push: @@ -60,3 +48,17 @@ jobs: -f runner_container_hooks_version=${{ env.RUNNER_CONTAINER_HOOKS_VERSION }} \ -f sha='${{ github.sha }}' \ -f push_to_registries=${{ env.PUSH_TO_REGISTRIES }} + + - name: Job summary + run: | + echo "The [release-runners.yaml](https://github.com/actions-runner-controller/releases/blob/main/.github/workflows/release-runners.yaml) workflow has been triggered!" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "**Parameters:**" >> $GITHUB_STEP_SUMMARY + echo "- runner_version: ${{ env.RUNNER_VERSION }}" >> $GITHUB_STEP_SUMMARY + echo "- docker_version: ${{ env.DOCKER_VERSION }}" >> $GITHUB_STEP_SUMMARY + echo "- runner_container_hooks_version: ${{ env.RUNNER_CONTAINER_HOOKS_VERSION }}" >> $GITHUB_STEP_SUMMARY + echo "- sha: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY + echo "- push_to_registries: ${{ env.PUSH_TO_REGISTRIES }}" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "**Status:**" >> $GITHUB_STEP_SUMMARY + echo "[https://github.com/actions-runner-controller/releases/actions/workflows/release-runners.yaml](https://github.com/actions-runner-controller/releases/actions/workflows/release-runners.yaml)" >> $GITHUB_STEP_SUMMARY