mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 15:39:02 +00:00
ci: CI Fixes
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
5e5f23c69d
commit
54f9b87b70
56
.github/workflows/meta-label-pr-ci-status.yaml
vendored
56
.github/workflows/meta-label-pr-ci-status.yaml
vendored
@ -23,12 +23,18 @@ 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"
|
- name: Download workflow artifact
|
||||||
uses: potiuk/get-workflow-origin@v1_3
|
uses: dawidd6/action-download-artifact@v2.11.0
|
||||||
id: source-run-info
|
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
github_token: ${{ steps.generate-token.outputs.token }}
|
||||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
workflow: pr-validate.yaml
|
||||||
|
run_id: ${{ github.event.workflow_run.id }}
|
||||||
|
|
||||||
|
- name: Read the pr_number file
|
||||||
|
id: pr_num_reader
|
||||||
|
uses: juliangruber/read-file-action@v1.0.0
|
||||||
|
with:
|
||||||
|
path: ./pr_number/pr_number.txt
|
||||||
|
|
||||||
- name: "Get workflow job status"
|
- name: "Get workflow job status"
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v5
|
||||||
@ -71,7 +77,7 @@ jobs:
|
|||||||
uses: ./.github/actions/label-from-status
|
uses: ./.github/actions/label-from-status
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
issue-number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
issue-number: ${{ steps.pr_num_reader.outputs.content }}
|
||||||
prefix: precommit
|
prefix: precommit
|
||||||
job-status: |-
|
job-status: |-
|
||||||
${{ fromJSON(steps.get-workflow-jobs.outputs.result).pre-commit-check-run-pre-commit-checks || 'skipped' }}
|
${{ fromJSON(steps.get-workflow-jobs.outputs.result).pre-commit-check-run-pre-commit-checks || 'skipped' }}
|
||||||
@ -81,28 +87,28 @@ jobs:
|
|||||||
uses: ./.github/actions/label-from-status
|
uses: ./.github/actions/label-from-status
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
issue-number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
issue-number: ${{ steps.pr_num_reader.outputs.content }}
|
||||||
prefix: changelog
|
prefix: changelog
|
||||||
job-status: |-
|
job-status: |-
|
||||||
${{ fromJSON(steps.get-workflow-jobs.outputs.result).charts-readme-validate-changelog || 'skipped' }}
|
${{ fromJSON(steps.get-workflow-jobs.outputs.result).charts-readme-validate-changelog || 'skipped' }}
|
||||||
remove-on-skipped: true
|
remove-on-skipped: true
|
||||||
|
|
||||||
# - name: Label lint status
|
- name: Label chart lint status
|
||||||
# uses: ./.github/actions/label-from-status
|
uses: ./.github/actions/label-from-status
|
||||||
# with:
|
with:
|
||||||
# token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
# issue-number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
issue-number: ${{ steps.pr_num_reader.outputs.content }}
|
||||||
# prefix: lint
|
prefix: lint
|
||||||
# job-status: |-
|
job-status: |-
|
||||||
# ${{ fromJSON(steps.get-workflow-jobs.outputs.result).lint || 'skipped' }}
|
${{ fromJSON(steps.get-workflow-jobs.outputs.result).charts-lint-lint-charts || 'skipped' }}
|
||||||
# remove-on-skipped: true
|
remove-on-skipped: true
|
||||||
|
|
||||||
# - name: Label install status
|
- name: Label chart install status
|
||||||
# uses: ./.github/actions/label-from-status
|
uses: ./.github/actions/label-from-status
|
||||||
# with:
|
with:
|
||||||
# token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
# issue-number: ${{ steps.source-run-info.outputs.pullRequestNumber }}
|
issue-number: ${{ steps.pr_num_reader.outputs.content }}
|
||||||
# prefix: lint
|
prefix: install
|
||||||
# job-status: |-
|
job-status: |-
|
||||||
# ${{ fromJSON(steps.get-workflow-jobs.outputs.result).lint || 'skipped' }}
|
${{ fromJSON(steps.get-workflow-jobs.outputs.result).charts-test-install-successful || 'skipped' }}
|
||||||
# remove-on-skipped: true
|
remove-on-skipped: true
|
||||||
|
12
.github/workflows/pr-get-metadata.yaml
vendored
12
.github/workflows/pr-get-metadata.yaml
vendored
@ -31,6 +31,18 @@ jobs:
|
|||||||
id: branch-name
|
id: branch-name
|
||||||
uses: tj-actions/branch-names@v5.1
|
uses: tj-actions/branch-names@v5.1
|
||||||
|
|
||||||
|
- name: Save PR data to file
|
||||||
|
env:
|
||||||
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
|
run: |
|
||||||
|
echo $PR_NUMBER > pr_number.txt
|
||||||
|
|
||||||
|
- name: Store pr data in artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: pr_number
|
||||||
|
path: ./pr_number.txt
|
||||||
|
|
||||||
pr-changes:
|
pr-changes:
|
||||||
name: Collect PR changes
|
name: Collect PR changes
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user