mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
ci: Debug
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
bc5265c6fd
commit
8d9993c4de
@ -10,25 +10,10 @@ on:
|
|||||||
- completed
|
- completed
|
||||||
|
|
||||||
jobs:
|
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:
|
label-precommit:
|
||||||
name: Label pre-commit status
|
name: Label pre-commit status
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: "${{ github.event.workflow.name == 'Pre-commit consistency check' }}"
|
if: "${{ github.event.workflow.name == 'Pre-commit consistency check' }}"
|
||||||
needs:
|
|
||||||
- get-info
|
|
||||||
steps:
|
steps:
|
||||||
- uses: getsentry/action-github-app-token@v1
|
- uses: getsentry/action-github-app-token@v1
|
||||||
id: get-app-token
|
id: get-app-token
|
||||||
@ -36,13 +21,20 @@ jobs:
|
|||||||
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
||||||
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
|
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
|
# CI Passed
|
||||||
- name: "add label: ok"
|
- name: "add label: ok"
|
||||||
uses: actions-ecosystem/action-add-labels@v1
|
uses: actions-ecosystem/action-add-labels@v1
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
with:
|
with:
|
||||||
github_token: ${{ steps.get-app-token.outputs.token }}
|
github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
||||||
labels: "precommit:ok"
|
labels: "precommit:ok"
|
||||||
|
|
||||||
- name: "remove label: failed"
|
- name: "remove label: failed"
|
||||||
@ -50,7 +42,7 @@ jobs:
|
|||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
with:
|
with:
|
||||||
github_token: ${{ steps.get-app-token.outputs.token }}
|
github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
||||||
labels: "precommit:failed"
|
labels: "precommit:failed"
|
||||||
|
|
||||||
# CI Failed
|
# CI Failed
|
||||||
@ -59,7 +51,7 @@ jobs:
|
|||||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
with:
|
with:
|
||||||
github_token: ${{ steps.get-app-token.outputs.token }}
|
github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
||||||
labels: "precommit:failed"
|
labels: "precommit:failed"
|
||||||
|
|
||||||
- name: "remove label: ok"
|
- name: "remove label: ok"
|
||||||
@ -67,13 +59,13 @@ jobs:
|
|||||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
with:
|
with:
|
||||||
github_token: ${{ steps.get-app-token.outputs.token }}
|
github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
||||||
labels: "precommit:ok"
|
labels: "precommit:ok"
|
||||||
|
|
||||||
label-lint-install:
|
label-lint-install:
|
||||||
name: Label lint and install status
|
name: Label lint and install status
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: "${{ github.event.workflow.name == 'Charts: Lint and tests' }}"
|
if: "${{ github.event.workflow.name == 'Charts: Lint and test' }}"
|
||||||
needs:
|
needs:
|
||||||
- get-info
|
- get-info
|
||||||
steps:
|
steps:
|
||||||
@ -83,6 +75,13 @@ jobs:
|
|||||||
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
||||||
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
|
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"
|
- name: "Lint successful"
|
||||||
uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user