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
b145bd21c5
commit
bc5265c6fd
126
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
126
.github/workflows/metadata-label-pr-ci-status.yaml
vendored
@ -36,49 +36,44 @@ 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 success"
|
# CI Passed
|
||||||
uses: actions/github-script@v4
|
- name: "add label: ok"
|
||||||
|
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 }}
|
||||||
script: |
|
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
github.issues.addLabels({
|
labels: "precommit:ok"
|
||||||
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: "remove label: failed"
|
||||||
uses: actions/github-script@v4
|
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' }}
|
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: |
|
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
github.issues.addLabels({
|
labels: "precommit:failed"
|
||||||
issue_number: ${{ needs.get-info.outputs.pullRequestNumber }},
|
|
||||||
owner: context.repo.owner,
|
- name: "remove label: ok"
|
||||||
repo: context.repo.repo,
|
uses: actions-ecosystem/action-remove-labels@v1
|
||||||
labels: ['precommit:failed']
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
})
|
with:
|
||||||
github.issues.removeLabel({
|
github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
issue_number: ${{ needs.get-info.outputs.pullRequestNumber }},
|
number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
owner: context.repo.owner,
|
labels: "precommit:ok"
|
||||||
repo: context.repo.repo,
|
|
||||||
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: |
|
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:
|
||||||
@ -96,41 +91,40 @@ jobs:
|
|||||||
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.workflow_run.id,
|
run_id: context.payload.workflow_run.id,
|
||||||
});
|
});
|
||||||
console.log(wfJobs)
|
console.log(wfJobs)
|
||||||
|
|
||||||
|
# # 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"
|
||||||
|
|
||||||
# # # CI Passed
|
# - name: "remove label: failed"
|
||||||
# # - name: "add label: ok"
|
# uses: actions-ecosystem/action-remove-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: ${{ needs.get-info.outputs.pullRequestNumber }}
|
# labels: "lint:failed"
|
||||||
# # labels: "lint:ok"
|
|
||||||
|
|
||||||
# # - name: "remove label: failed"
|
# # CI Failed
|
||||||
# # uses: actions-ecosystem/action-remove-labels@v1
|
# - name: "add label: failed"
|
||||||
# # if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
# uses: actions-ecosystem/action-add-labels@v1
|
||||||
# # with:
|
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
# # github_token: ${{ steps.get-app-token.outputs.token }}
|
# with:
|
||||||
# # number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
# github_token: ${{ steps.get-app-token.outputs.token }}
|
||||||
# # labels: "lint:failed"
|
# number: ${{ needs.get-info.outputs.pullRequestNumber }}
|
||||||
|
# labels: "lint:failed"
|
||||||
|
|
||||||
# # # CI Failed
|
# - name: "remove label: ok"
|
||||||
# # - name: "add label: failed"
|
# uses: actions-ecosystem/action-remove-labels@v1
|
||||||
# # uses: actions-ecosystem/action-add-labels@v1
|
# 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: ${{ needs.get-info.outputs.pullRequestNumber }}
|
# labels: "lint:ok"
|
||||||
# # 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