From 4e7525476c44c9ab26bedebab16988a18c071eb6 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:30:58 +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 | 100 ++++++++---------- 1 file changed, 44 insertions(+), 56 deletions(-) diff --git a/.github/workflows/metadata-label-pr-ci-status.yaml b/.github/workflows/metadata-label-pr-ci-status.yaml index 32262f58..d2e5fb98 100644 --- a/.github/workflows/metadata-label-pr-ci-status.yaml +++ b/.github/workflows/metadata-label-pr-ci-status.yaml @@ -43,65 +43,53 @@ jobs: with: github-token: ${{ steps.get-app-token.outputs.token }} script: | - github.issues.addLabels({ - issue_number: context.needs.get-info.outputs.pullRequestNumber, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['precommit:ok'] - }) - github.issues.removeLabel({ - issue_number: context.needs.get-info.outputs.pullRequestNumber, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['precommit:failed'] - }) - result-encoding: string + console.log(context) - - name: "Pre-commit failed" - uses: actions/github-script@v4 - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - with: - github-token: ${{ steps.get-app-token.outputs.token }} - script: | - github.issues.addLabels({ - issue_number: context.needs.get-info.outputs.pullRequestNumber, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['precommit:failed'] - }) - github.issues.removeLabel({ - issue_number: context.needs.get-info.outputs.pullRequestNumber, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['precommit:ok'] - }) - result-encoding: string + # - name: "Pre-commit failed" + # uses: actions/github-script@v4 + # if: ${{ github.event.workflow_run.conclusion == 'failure' }} + # with: + # github-token: ${{ steps.get-app-token.outputs.token }} + # script: | + # github.issues.addLabels({ + # issue_number: context.needs.get-info.outputs.pullRequestNumber, + # owner: context.repo.owner, + # repo: context.repo.repo, + # labels: ['precommit:failed'] + # }) + # github.issues.removeLabel({ + # issue_number: context.needs.get-info.outputs.pullRequestNumber, + # owner: context.repo.owner, + # repo: context.repo.repo, + # labels: ['precommit:ok'] + # }) + # result-encoding: string - label-lint-install: - name: Label lint and install status - runs-on: ubuntu-20.04 - if: | - ${{ github.event.workflow.name == 'Charts: Lint and tests' }} - needs: - - get-info - steps: - - uses: getsentry/action-github-app-token@v1 - id: get-app-token - with: - app_id: ${{ secrets.K8S_AT_HOME_APP_ID }} - private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }} + # label-lint-install: + # name: Label lint and install status + # runs-on: ubuntu-20.04 + # if: | + # ${{ github.event.workflow.name == 'Charts: Lint and tests' }} + # needs: + # - get-info + # steps: + # - uses: getsentry/action-github-app-token@v1 + # id: get-app-token + # with: + # app_id: ${{ secrets.K8S_AT_HOME_APP_ID }} + # private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }} - - name: "Lint successful" - uses: actions/github-script@v4 - with: - github-token: ${{ steps.get-app-token.outputs.token }} - script: | - const wfJobs = github.actions.listJobsForWorkflowRun({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: context.event.workflow_run.id, - }); - console.log(wfJobs) + # - name: "Lint successful" + # uses: actions/github-script@v4 + # with: + # github-token: ${{ steps.get-app-token.outputs.token }} + # script: | + # const wfJobs = github.actions.listJobsForWorkflowRun({ + # owner: context.repo.owner, + # repo: context.repo.repo, + # run_id: context.event.workflow_run.id, + # }); + # console.log(wfJobs) # github.issues.addLabels({ # issue_number: context.needs.get-info.outputs.pullRequestNumber, # owner: context.repo.owner,