mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-02 23:39:03 +00:00
ci: debug
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
4e7525476c
commit
b145bd21c5
116
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
116
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
@ -26,8 +26,7 @@ jobs:
|
|||||||
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: |
|
if: "${{ github.event.workflow.name == 'Pre-commit consistency check' }}"
|
||||||
${{ github.event.workflow.name == 'Pre-commit consistency check' }}
|
|
||||||
needs:
|
needs:
|
||||||
- get-info
|
- get-info
|
||||||
steps:
|
steps:
|
||||||
@ -37,73 +36,70 @@ 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: "Pre-commit successful"
|
- name: "Pre-commit success"
|
||||||
uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
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 }}
|
||||||
script: |
|
script: |
|
||||||
console.log(context)
|
github.issues.addLabels({
|
||||||
|
issue_number: ${{ needs.get-info.outputs.pullRequestNumber }},
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: ['precommit:ok']
|
||||||
|
})
|
||||||
|
github.issues.removeLabel({
|
||||||
|
issue_number: ${{ needs.get-info.outputs.pullRequestNumber }},
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: ['precommit:failed']
|
||||||
|
})
|
||||||
|
|
||||||
# - name: "Pre-commit failed"
|
- name: "Pre-commit failed"
|
||||||
# uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
# 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 }}
|
||||||
# script: |
|
script: |
|
||||||
# github.issues.addLabels({
|
github.issues.addLabels({
|
||||||
# issue_number: context.needs.get-info.outputs.pullRequestNumber,
|
issue_number: ${{ needs.get-info.outputs.pullRequestNumber }},
|
||||||
# owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
# repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
# labels: ['precommit:failed']
|
labels: ['precommit:failed']
|
||||||
# })
|
})
|
||||||
# github.issues.removeLabel({
|
github.issues.removeLabel({
|
||||||
# issue_number: context.needs.get-info.outputs.pullRequestNumber,
|
issue_number: ${{ needs.get-info.outputs.pullRequestNumber }},
|
||||||
# owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
# repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
# labels: ['precommit:ok']
|
labels: ['precommit:ok']
|
||||||
# })
|
})
|
||||||
# result-encoding: string
|
|
||||||
|
|
||||||
# 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: |
|
if: |
|
||||||
# ${{ github.event.workflow.name == 'Charts: Lint and tests' }}
|
${{ github.event.workflow.name == 'Charts: Lint and tests' }}
|
||||||
# needs:
|
needs:
|
||||||
# - get-info
|
- 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
|
||||||
# with:
|
with:
|
||||||
# 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: "Lint successful"
|
- name: "Lint successful"
|
||||||
# uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
# with:
|
with:
|
||||||
# github-token: ${{ steps.get-app-token.outputs.token }}
|
github-token: ${{ steps.get-app-token.outputs.token }}
|
||||||
# script: |
|
script: |
|
||||||
# const wfJobs = github.actions.listJobsForWorkflowRun({
|
const wfJobs = github.actions.listJobsForWorkflowRun({
|
||||||
# owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
# repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
# run_id: context.event.workflow_run.id,
|
run_id: context.workflow_run.id,
|
||||||
# });
|
});
|
||||||
# console.log(wfJobs)
|
console.log(wfJobs)
|
||||||
# github.issues.addLabels({
|
|
||||||
# issue_number: context.needs.get-info.outputs.pullRequestNumber,
|
|
||||||
# owner: context.repo.owner,
|
|
||||||
# repo: context.repo.repo,
|
|
||||||
# labels: ['lint:ok']
|
|
||||||
# })
|
|
||||||
# github.issues.removeLabel({
|
|
||||||
# issue_number: context.needs.get-info.outputs.pullRequestNumber,
|
|
||||||
# owner: context.repo.owner,
|
|
||||||
# repo: context.repo.repo,
|
|
||||||
# labels: ['lint:failed']
|
|
||||||
# })
|
|
||||||
|
|
||||||
- uses: hmarr/debug-action@v2
|
|
||||||
|
|
||||||
# # # CI Passed
|
# # # CI Passed
|
||||||
# # - name: "add label: ok"
|
# # - name: "add label: ok"
|
||||||
|
Loading…
Reference in New Issue
Block a user