mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
ci: debug
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
0fc0088d9b
commit
4e7525476c
100
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
100
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user