mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
ci: Add debug
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
f77bb36710
commit
5481f77bf7
104
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
104
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
@ -23,58 +23,10 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
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
|
|
||||||
# if: ${{ github.event.workflow.name == 'Pre-commit consistency check' }}
|
|
||||||
# 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 }}
|
|
||||||
|
|
||||||
# # 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 }}
|
|
||||||
# labels: "precommit:ok"
|
|
||||||
|
|
||||||
# - name: "remove label: failed"
|
|
||||||
# uses: actions-ecosystem/action-remove-labels@v1
|
|
||||||
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
||||||
# with:
|
|
||||||
# github_token: ${{ steps.get-app-token.outputs.token }}
|
|
||||||
# number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
|
||||||
# labels: "precommit:failed"
|
|
||||||
|
|
||||||
# # CI Failed
|
|
||||||
# - name: "add label: failed"
|
|
||||||
# uses: actions-ecosystem/action-add-labels@v1
|
|
||||||
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
|
||||||
# with:
|
|
||||||
# github_token: ${{ steps.get-app-token.outputs.token }}
|
|
||||||
# number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
|
||||||
# labels: "precommit:failed"
|
|
||||||
|
|
||||||
# - name: "remove label: ok"
|
|
||||||
# uses: actions-ecosystem/action-remove-labels@v1
|
|
||||||
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
|
||||||
# with:
|
|
||||||
# github_token: ${{ steps.get-app-token.outputs.token }}
|
|
||||||
# number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
|
||||||
# labels: "precommit:ok"
|
|
||||||
|
|
||||||
label-lint:
|
|
||||||
name: Label lint status
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: |
|
if: ${{ github.event.workflow.name == 'Pre-commit consistency check' }}
|
||||||
${{ github.event.workflow.name == 'Charts: Lint and tests' }}
|
|
||||||
needs:
|
needs:
|
||||||
- get-info
|
- get-info
|
||||||
steps:
|
steps:
|
||||||
@ -117,3 +69,53 @@ jobs:
|
|||||||
github_token: ${{ steps.get-app-token.outputs.token }}
|
github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
labels: "precommit:ok"
|
labels: "precommit:ok"
|
||||||
|
|
||||||
|
label-lint:
|
||||||
|
name: Label lint 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 }}
|
||||||
|
|
||||||
|
- uses: hmarr/debug-action@v2
|
||||||
|
|
||||||
|
# # 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 }}
|
||||||
|
# labels: "lint:ok"
|
||||||
|
|
||||||
|
# - name: "remove label: failed"
|
||||||
|
# uses: actions-ecosystem/action-remove-labels@v1
|
||||||
|
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
# with:
|
||||||
|
# github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
|
# number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
|
# labels: "lint:failed"
|
||||||
|
|
||||||
|
# # CI Failed
|
||||||
|
# - name: "add label: failed"
|
||||||
|
# uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
|
# with:
|
||||||
|
# github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
|
# number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
|
# labels: "lint:failed"
|
||||||
|
|
||||||
|
# - name: "remove label: ok"
|
||||||
|
# uses: actions-ecosystem/action-remove-labels@v1
|
||||||
|
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
|
# with:
|
||||||
|
# github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
|
# number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
|
# labels: "lint:ok"
|
||||||
|
Loading…
Reference in New Issue
Block a user