Skip to content

Commit

Permalink
[TECH-112] Add global Renovate workflow (#1)
Browse files Browse the repository at this point in the history
* Add global Renovate workflow

* Update .editorconfig

Co-authored-by: Guillaume Caya-Letourneau <[email protected]>

Co-authored-by: Guillaume Caya-Letourneau <[email protected]>
  • Loading branch information
asimmon and Gcaya authored Jan 17, 2023
1 parent 9aebe16 commit 109ab24
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
charset = utf-8

[*.{yml,yaml,json}]
indent_size = 2
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set the default behavior, in case users don't have core.autocrlf set.
* text=auto

# Files that should always be normalized and converted to native line endings on checkout.
*.js text
*.json text
*.ts text
*.tsx text
*.md text
*.sh text eol=lf
*.conf text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.Dockerfile text eol=lf
Dockerfile text eol=lf
LICENSE text eol=lf
20 changes: 20 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Renovate

on:
schedule:
- cron: "5 2 * * *"

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Renovate
shell: bash
run: npx renovate
env:
RENOVATE_CONFIG_FILE: "renovate.json"
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
LOG_LEVEL: "debug"
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# JetBrains IDEs
.idea/

# OS junk
.DS_Store
Desktop.ini
ehthumbs.db
Thumbs.db
$RECYCLE.BIN/
23 changes: 23 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"platform": "github",
"labels": ["renovate"],
"extends": ["config:base"],
"enabledManagers": ["github-actions"],
"description": "Discovers all repositories within the gsoft-inc organisation that contains a Renovate configuration file, and execute Renovate by using each individual repository configuration",
"autodiscover": true,
"autodiscoverFilter": ["gsoft-inc/*"],
"optimizeForDisabled": true,
"onboarding": false,
"prHourlyLimit": 0,
"prConcurrentLimit": 0,
"branchConcurrentLimit": 0,
"dependencyDashboard": false,
"gitAuthor": "Renovate Bot <[email protected]>",
"packageRules": [
{
"matchManagers": ["github-actions"],
"groupName": "GitHub actions dependencies"
}
]
}

0 comments on commit 109ab24

Please sign in to comment.