ci: Debug

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-07-24 14:54:57 +02:00
parent bc5265c6fd
commit 8d9993c4de
No known key found for this signature in database
GPG Key ID: 228A77789D71A6E2

View File

@ -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: