Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update workflows #22

Merged
merged 6 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"rules": {
"type-enum": [
2,
"always",
[
"chore",
"ci",
"deps",
"feat",
"fix",
"patch",
"style"
]
],
"subject-empty": [
2,
"never"
],
"type-case": [
2,
"always",
"lower-case"
],
"subject-case": [
0
],
"type-empty": [
2,
"never"
],
"scope-case": [
2,
"always",
"lower-case"
],
"scope-enum": [
0
],
"header-max-length": [
2,
"always",
120
]
}
}
File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions .github/renovate.json5

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/docker-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
id: matrix
run: |
matrix=$(cat matrix.json)
echo "matrix=${matrix}" | tee $GITHUB_OUTPUT
echo "matrix=${matrix}" | tee "$GITHUB_OUTPUT"

build:
name: ${{ matrix.job_name }}
needs: generate-matrix
uses: mirceanton/reusable-workflows/.github/workflows/docker-release.yaml@17d8ef4df857d93b905170956fbbcd56b296e8bb
uses: mirceanton/reusable-workflows/.github/workflows/reusable-docker-build-push.yaml@f4dce998a168bbe2e53664acf4dd29407cd3d29f # v3.4.19
if: ${{ fromJson(needs.generate-matrix.outputs.matrix)['include'].length > 0 }}
strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/label-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Label Sync

on:
# Manual Trigger
workflow_dispatch:
inputs:
dry-run:
description: Dry Run
default: true
required: false
type: boolean

# Dry Run on any PR that changes the labels config or the workflow
pull_request:
paths:
- .github/workflows/label-sync.yaml
- .github/labels.yaml

# "Wet" Run on any push to the main branch that changes the labels config or the workflow
push:
branches: ["main", "master"]
paths:
- .github/workflows/label-sync.yaml
- .github/labels.yaml

# "Wet" Run hourly
schedule:
- cron: "0 * * * *"

jobs:
label-sync:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-label-sync.yaml@f4dce998a168bbe2e53664acf4dd29407cd3d29f # v3.4.19
secrets: inherit
with:
dry-run: ${{ inputs.dry-run || github.event_name == 'pull_request' }}
config-file: .github/labels.yaml
13 changes: 13 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Labeler

on:
pull_request_target: {}

jobs:
pr-labeler:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-labeler.yaml@f4dce998a168bbe2e53664acf4dd29407cd3d29f # v3.4.19
secrets: inherit
with:
config-file: .github/labeler.yaml
19 changes: 19 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Lint

on:
# Manual Trigger
workflow_dispatch: {}

# Run on any PR
pull_request: {}

jobs:
actionlint:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-actionlint.yaml@f4dce998a168bbe2e53664acf4dd29407cd3d29f # v3.4.19
secrets: inherit

commitlint:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-commitlint.yaml@f4dce998a168bbe2e53664acf4dd29407cd3d29f # v3.4.19
secrets: inherit
34 changes: 0 additions & 34 deletions .github/workflows/meta-label-sync.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/meta-labeler.yaml

This file was deleted.

17 changes: 11 additions & 6 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,39 @@
name: Renovate

on:
# Manual Trigger
workflow_dispatch:
inputs:
dry-run:
description: Dry Run
default: "false"
default: false
required: false
type: boolean
log-level:
description: Log Level
default: debug
required: false
type: string

# Dry Run on any PR that changes the renovate config or the renovate workflow
pull_request:
paths:
- ".github/workflows/renovate.yaml"
- ".github/configs/renovate/*.json5"
- "renovate.json5"
- .github/workflows/renovate.yaml
- renovate.json5

# "Wet" Run hourly
schedule:
- cron: "0 * * * *" # hourly
- cron: "0 * * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

jobs:
renovate:
uses: mirceanton/reusable-workflows/.github/workflows/renovate.yaml@17d8ef4df857d93b905170956fbbcd56b296e8bb
uses: mirceanton/reusable-workflows/.github/workflows/reusable-renovate.yaml@f4dce998a168bbe2e53664acf4dd29407cd3d29f # v3.4.19
secrets: inherit
with:
dry-run: "${{ inputs.dry-run == true || github.event_name == 'pull_request' }}"
log-level: "${{ inputs.log-level || 'debug' }}"
config-file: "renovate.json5"
13 changes: 13 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboardTitle": "Renovate Dashboard 🤖",
"extends": [
":dependencyDashboard",
"config:best-practices",
":disableRateLimiting",
":semanticCommits",
"github>mirceanton/renovate-config//labels/all.json5",
"github>mirceanton/renovate-config//semantic-commits/all.json5",
"github>mirceanton/renovate-config//auto-merge/github-actions.json5"
]
}
Loading