-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
131 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
--- | ||
area/github: | ||
- ".github/**/*" | ||
area/cluster: | ||
- "kubernetes/**/*" | ||
- changed-files: | ||
- any-glob-to-any-file: ".github/**/*" | ||
area/hack: | ||
- "hack/**/*" | ||
- changed-files: | ||
- any-glob-to-any-file: "hack/**/*" | ||
area/infrastructure: | ||
- "infrastructure/**/*" | ||
- changed-files: | ||
- any-glob-to-any-file: "infrastructure/**/*" | ||
cluster/main: | ||
- changed-files: | ||
- any-glob-to-any-file: "kubernetes/main/**/*" | ||
- any-glob-to-any-file: "infrastructure/talos/main/**/*" | ||
cluster/staging: | ||
- changed-files: | ||
- any-glob-to-any-file: "kubernetes/staging/**/*" | ||
- any-glob-to-any-file: "infrastructure/talos/staging/**/*" | ||
cluster/nas: | ||
- changed-files: | ||
- any-glob-to-any-file: "kubernetes/nas/**/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,74 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: Link Checker | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
env: | ||
WORKFLOW_ISSUE_TITLE: "Link Checker Dashboard 🔗" | ||
|
||
jobs: | ||
link-checker: | ||
name: Link Checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate Token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
id: generate-token | ||
id: app-token | ||
with: | ||
app_id: "${{ secrets.BOT_APP_ID }}" | ||
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | ||
|
||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
token: "${{ steps.generate-token.outputs.token }}" | ||
token: "${{ steps.app-token.outputs.token }}" | ||
|
||
- name: Setup Homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
|
||
- name: Setup Workflow Tools | ||
shell: bash | ||
run: brew install lychee | ||
|
||
- name: Scan For Broken Links | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}" | ||
run: | | ||
lychee --verbose --no-progress \ | ||
--format markdown \ | ||
--output results.md \ | ||
--exclude-all-private \ | ||
--exclude-mail \ | ||
./**/*.md || true | ||
- name: Print Output | ||
run: cat results.md | ||
|
||
- name: Link Checker | ||
uses: lycheeverse/lychee-action@c053181aa0c3d17606addfe97a9075a32723548a # v1.9.3 | ||
id: lychee | ||
- name: Find Link Checker Issue | ||
id: find-issue | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}" | ||
GH_TOKEN: "${{ steps.app-token.outputs.token }}" | ||
run: | | ||
issue_number=$( \ | ||
gh issue list \ | ||
--search "in:title ${{ env.WORKFLOW_ISSUE_TITLE }}" \ | ||
--state open \ | ||
--json number \ | ||
| jq --raw-output '.[0].number' \ | ||
) | ||
echo "issue-number=${issue_number}" >> $GITHUB_OUTPUT | ||
echo "${issue_number}" | ||
- name: Create Issue From File | ||
if: env.lychee_exit_code != 0 | ||
uses: peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94 # v5 | ||
- name: Create or Update Issue | ||
uses: peter-evans/create-issue-from-file@v5 | ||
with: | ||
title: Link Checker Report | ||
content-filepath: ./lychee/out.md | ||
labels: report, automated issue | ||
token: "${{ steps.app-token.outputs.token }}" | ||
title: "${{ env.WORKFLOW_ISSUE_TITLE }}" | ||
issue-number: "${{ steps.find-issue.outputs.issue-number || '' }}" | ||
content-filepath: results.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: "Meta - Labeler" | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request_target: | ||
branches: ["main"] | ||
|
||
jobs: | ||
labeler: | ||
name: Labeler | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Generate Token | ||
uses: actions/create-github-app-token@v1 | ||
id: app-token | ||
with: | ||
app-id: "${{ secrets.BOT_APP_ID }}" | ||
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | ||
|
||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
token: "${{ steps.app-token.outputs.token }}" | ||
|
||
- name: Labeler | ||
uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ steps.app-token.outputs.token }}" | ||
configuration-path: .github/labeler.yaml | ||
|
||
- name: Label Size | ||
uses: pascalgn/size-label-action@37a5ad4ae20ea8032abf169d953bcd661fd82cd3 # v0.5.0 | ||
env: | ||
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}" | ||
with: | ||
sizes: > | ||
{ | ||
"0": "XS", | ||
"20": "S", | ||
"50": "M", | ||
"200": "L", | ||
"800": "XL", | ||
"2000": "XXL" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters