Skip to content

Commit

Permalink
feat: add workflows from achillobator
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Dec 25, 2024
1 parent 635bcf2 commit 6841f68
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*.yml linguist-detectable=true
*.yml linguist-language=YAML

*.yaml linguist-detectable=true
*.yaml linguist-language=YAML

*.just linguist-detectable=true
*.just linguist-documentation=false
*.just linguist-language=Just

*.json linguist-detectable=true
*.json linguist-documentation=false
*.json linguist-language=JSON
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @tulilirockz
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [castrojo, tulilirockz]
20 changes: 20 additions & 0 deletions .github/renovate5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:best-practices",
],

"rebaseWhen": "never",

"packageRules": [
{
"automerge": true,
"matchUpdateTypes": ["pin", "pinDigest"]
},
{
"automerge": true,
"matchManagers": ["dockerfile"],
"matchUpdateTypes": ["digest"]
},
]
}
2 changes: 2 additions & 0 deletions .github/semantic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enabled: true
titleOnly: true
24 changes: 24 additions & 0 deletions .github/workflows/cleanup-old-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Cleanup Old Images
on:
schedule:
- cron: "15 0 * * 0" # 0015 UTC on Sundays
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

jobs:
delete-older-than-90:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete Images Older Than 90 Days
uses: dataaxiom/ghcr-cleanup-action@2d58aab3d24aed94070e032d3091b83d50d93534 # v1.0.15
with:
token: ${{ secrets.GITHUB_TOKEN }}
packages: main
older-than: 90 days
delete-orphaned-images: true
keep-n-tagged: 7
keep-n-untagged: 7
15 changes: 15 additions & 0 deletions .github/workflows/content-filter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check for Spammy Issue Comments

on:
issue_comment:
types: [created, edited]

permissions:
issues: write

jobs:
comment-filter:
runs-on: ubuntu-latest
steps:
- name: Comment filter
uses: DecimalTurn/Comment-Filter@f0aa7694eca5172825c4b5a502dc110b5fe8603a # v0.2.1
35 changes: 35 additions & 0 deletions .github/workflows/validate-renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Validate Renovate Config

on:
pull_request:
paths:
- ".github/renovate.json5"
- ".github/workflows/renovate.yml"
push:
branches:
- main
paths:
- ".github/renovate.json5"
- ".github/workflows/renovate.yml"

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: latest

- name: Install dependencies
shell: bash
env:
RENOVATE_VERSION: latest
run: npm install -g renovate@${RENOVATE_VERSION}

- name: Validate Renovate config
shell: bash
run: renovate-config-validator --strict
6 changes: 0 additions & 6 deletions renovate.json

This file was deleted.

0 comments on commit 6841f68

Please sign in to comment.