From d1a2298dd5564891d3cb0bf6b85a0dfa1f181a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominykas=20Blyz=CC=8Ce=CC=87?= Date: Sun, 3 Jan 2021 11:58:53 +0200 Subject: [PATCH] ci: refactor - extract check name --- .github/workflows/wiby.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wiby.yaml b/.github/workflows/wiby.yaml index 1d68ae7..1d3a2a0 100644 --- a/.github/workflows/wiby.yaml +++ b/.github/workflows/wiby.yaml @@ -5,6 +5,7 @@ on: types: [ created ] env: + WIBY_CHECK_NAME: "wiby" WIBY_NODE_VERSION: 14 jobs: @@ -52,7 +53,7 @@ jobs: mediaType: | previews: - antiope - name: "wiby" + name: ${{ env.WIBY_CHECK_NAME }} details_url: "${{ steps.pr.outputs.repo_url }}/actions/runs/${{ github.run_id }}" head_sha: ${{ steps.pr.outputs.head_sha }} status: "queued" @@ -92,7 +93,7 @@ jobs: mediaType: | previews: - antiope - name: "wiby" + name: ${{ env.WIBY_CHECK_NAME }} details_url: "${{ steps.pr.outputs.repo_url }}/actions/runs/${{ github.run_id }}" head_sha: ${{ steps.pr.outputs.head_sha }} conclusion: "failure" @@ -107,7 +108,7 @@ jobs: mediaType: | previews: - antiope - name: "wiby" + name: ${{ env.WIBY_CHECK_NAME }} details_url: "${{ steps.pr.outputs.repo_url }}/actions/runs/${{ github.run_id }}" head_sha: ${{ steps.pr.outputs.head_sha }} status: "in_progress" @@ -192,7 +193,7 @@ jobs: mediaType: | previews: - antiope - name: "wiby" + name: ${{ env.WIBY_CHECK_NAME }} details_url: "${{ steps.pr.outputs.repo_url }}/actions/runs/${{ github.run_id }}" head_sha: ${{ steps.pr.outputs.head_sha }} conclusion: "failure" @@ -208,7 +209,7 @@ jobs: mediaType: | previews: - antiope - name: "wiby" + name: ${{ env.WIBY_CHECK_NAME }} details_url: "${{ steps.pr.outputs.repo_url }}/actions/runs/${{ github.run_id }}" head_sha: ${{ steps.pr.outputs.head_sha }} conclusion: ${{ steps.wiby_result.outputs.wiby_conclusion }}