From 8d9993c4de11c4a806553990718c5349b836bc95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=B4=87=CA=80=C9=B4=E1=B4=85=20S=E1=B4=84=CA=9C?= =?UTF-8?q?=E1=B4=8F=CA=80=C9=A2=E1=B4=87=CA=80s?= Date: Sat, 24 Jul 2021 14:54:57 +0200 Subject: [PATCH] ci: Debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs --- .../metadata-label-pr-ci-status.yaml | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/metadata-label-pr-ci-status.yaml b/.github/workflows/metadata-label-pr-ci-status.yaml index 5996f5fb..970d5377 100644 --- a/.github/workflows/metadata-label-pr-ci-status.yaml +++ b/.github/workflows/metadata-label-pr-ci-status.yaml @@ -10,25 +10,10 @@ on: - completed jobs: - get-info: - name: "Get information about the source run" - runs-on: ubuntu-20.04 - outputs: - pullRequestNumber: ${{ steps.source-run-info.outputs.pullRequestNumber }} - steps: - - name: "Get information about the origin 'CI' run" - uses: potiuk/get-workflow-origin@v1_3 - id: source-run-info - with: - token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - label-precommit: name: Label pre-commit status runs-on: ubuntu-20.04 if: "${{ github.event.workflow.name == 'Pre-commit consistency check' }}" - needs: - - get-info steps: - uses: getsentry/action-github-app-token@v1 id: get-app-token @@ -36,13 +21,20 @@ jobs: app_id: ${{ secrets.K8S_AT_HOME_APP_ID }} private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }} + - name: "Get information about the origin 'CI' run" + uses: potiuk/get-workflow-origin@v1_3 + id: source-run-info + with: + token: ${{ steps.get-app-token.outputs.token }} + sourceRunId: ${{ github.event.workflow_run.id }} + # CI Passed - name: "add label: ok" uses: actions-ecosystem/action-add-labels@v1 if: ${{ github.event.workflow_run.conclusion == 'success' }} with: github_token: ${{ steps.get-app-token.outputs.token }} - number: ${{ needs.get-info.outputs.pullRequestNumber }} + number: ${{ steps.source-run-info.outputs.pullRequestNumber }} labels: "precommit:ok" - name: "remove label: failed" @@ -50,7 +42,7 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} with: github_token: ${{ steps.get-app-token.outputs.token }} - number: ${{ needs.get-info.outputs.pullRequestNumber }} + number: ${{ steps.source-run-info.outputs.pullRequestNumber }} labels: "precommit:failed" # CI Failed @@ -59,7 +51,7 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'failure' }} with: github_token: ${{ steps.get-app-token.outputs.token }} - number: ${{ needs.get-info.outputs.pullRequestNumber }} + number: ${{ steps.source-run-info.outputs.pullRequestNumber }} labels: "precommit:failed" - name: "remove label: ok" @@ -67,13 +59,13 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'failure' }} with: github_token: ${{ steps.get-app-token.outputs.token }} - number: ${{ needs.get-info.outputs.pullRequestNumber }} + number: ${{ steps.source-run-info.outputs.pullRequestNumber }} labels: "precommit:ok" label-lint-install: name: Label lint and install status runs-on: ubuntu-20.04 - if: "${{ github.event.workflow.name == 'Charts: Lint and tests' }}" + if: "${{ github.event.workflow.name == 'Charts: Lint and test' }}" needs: - get-info steps: @@ -83,6 +75,13 @@ jobs: app_id: ${{ secrets.K8S_AT_HOME_APP_ID }} private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }} + - name: "Get information about the origin 'CI' run" + uses: potiuk/get-workflow-origin@v1_3 + id: source-run-info + with: + token: ${{ steps.get-app-token.outputs.token }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: "Lint successful" uses: actions/github-script@v4 with: